use of jetbrains.communicator.mock.MockIDEFacade in project intellij-plugins by JetBrains.
the class UserTreeTest method setUp.
protected void setUp() throws Exception {
super.setUp();
UserModelImpl userModel = new UserModelImpl(getBroadcaster());
disposeOnTearDown(userModel);
myLocalMessageDispatcher = new LocalMessageDispatcherImpl(getBroadcaster(), new MockIDEFacade(getClass()), userModel);
disposeOnTearDown(myLocalMessageDispatcher);
myUserTree = new UserTree(myLocalMessageDispatcher) {
public void treeDidChange() {
super.treeDidChange();
myTreeChanged = true;
}
protected void invokeSendMessageAction() {
mySendMessageInvoked = true;
}
};
myUser = new MockUser();
myTreePath = new TreePath(myUser);
myTreeChanged = false;
mySendMessageInvoked = false;
}
use of jetbrains.communicator.mock.MockIDEFacade in project intellij-plugins by JetBrains.
the class AbstractMessageDispatcherTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
myIdeFacade = new MockIDEFacade(getClass());
myDispatcher = createDispatcher();
myUser = new MockUser("user", null);
myUser.setOnline(true);
}
use of jetbrains.communicator.mock.MockIDEFacade in project intellij-plugins by JetBrains.
the class AbstractTransportTestCase method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
myIdeFacade = new MockIDEFacade(getClass());
myUserModel = new UserModelImpl(getBroadcaster());
myDispatcher = new AsyncMessageDispatcherImpl(getBroadcaster(), myIdeFacade);
disposeOnTearDown(myUserModel);
disposeOnTearDown(myDispatcher);
registerResponseProviders(myUserModel, myIdeFacade);
myTransport = createTransport();
mySelf = createSelf();
}
use of jetbrains.communicator.mock.MockIDEFacade in project intellij-plugins by JetBrains.
the class UserListComponentTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
myBroadcaster = getBroadcaster();
myIdeFacade = new MockIDEFacade(getClass());
myUserModel = new UserModelImpl(myBroadcaster);
disposeOnTearDown(myUserModel);
myLocalMessageDispatcher = new LocalMessageDispatcherImpl(myBroadcaster, myIdeFacade, myUserModel);
disposeOnTearDown(myLocalMessageDispatcher);
myUserListComponent = new UserListComponentImpl(myUserModel, myIdeFacade, myLocalMessageDispatcher);
disposeOnTearDown(myUserListComponent);
// Emulate the UI change
getTree().updateUI();
}
use of jetbrains.communicator.mock.MockIDEFacade in project intellij-plugins by JetBrains.
the class AsyncMessageDispatcherTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
myIdeFacade = new MockIDEFacade(getClass());
myUser = new MockUser("user", null);
myUser.setOnline(true);
myDispatcher = new AsyncMessageDispatcherImpl(getBroadcaster(), myIdeFacade);
new WaitFor(1000) {
@Override
protected boolean condition() {
return myDispatcher.isRunning();
}
};
myLog = new String[] { "" };
}
Aggregations