use of jetbrains.communicator.core.impl.users.UserModelImpl 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.core.impl.users.UserModelImpl 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.core.impl.users.UserModelImpl in project intellij-plugins by JetBrains.
the class LocalMessageDispatcherTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
myUserModel = new UserModelImpl(getBroadcaster());
disposeOnTearDown(myUserModel);
myIdeFacade = new MockIDEFacade(getClass());
myDispatcher = new LocalMessageDispatcherImpl(getBroadcaster(), myIdeFacade, myUserModel);
myUser = UserImpl.create("user", MockTransport.NAME);
}
use of jetbrains.communicator.core.impl.users.UserModelImpl in project intellij-plugins by JetBrains.
the class P2PTransportTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
myUserModel = new UserModelImpl(getBroadcaster());
disposeOnTearDown(myUserModel);
myIdeFacade = new MockIDEFacade(getClass());
myIdeFacade.setReturnedProjects(new String[] { PROJECT_NAME });
myDispatcher = new AsyncMessageDispatcherImpl(getBroadcaster(), myIdeFacade);
disposeOnTearDown(myDispatcher);
myTransport = new P2PTransport(myDispatcher, myUserModel, WAIT_USER_RESPONSES_TIMEOUT) {
@Override
protected void sendUserAddedCallback(User user) {
super.sendUserAddedCallback(user);
myLog += "sendUserAddedCallback" + user;
}
};
Pico.getInstance().registerComponentInstance(myTransport);
myLog = "";
myProjectLevelContainer = Pico.getInstance().makeChildContainer();
}
use of jetbrains.communicator.core.impl.users.UserModelImpl in project intellij-plugins by JetBrains.
the class SendMessageCommandTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
myMockUserListComponent = new MockUserListComponent();
myFacadeMock = mock(IDEFacade.class);
myUserModel = new UserModelImpl(getBroadcaster());
disposeOnTearDown(myUserModel);
myCommand = new SendMessageCommand(myUserModel, myMockUserListComponent, (IDEFacade) myFacadeMock.proxy());
}
Aggregations