use of jetbrains.communicator.core.impl.users.UserModelImpl in project intellij-plugins by JetBrains.
the class JabberTransportTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
myFacade = new MockJabberFacade();
myUIMock = mock(JabberUI.class);
myUserModel = new UserModelImpl(getBroadcaster());
disposeOnTearDown(myUserModel);
Mock dispatcherMock = mock(AsyncMessageDispatcher.class);
myIDEFacade = new MockIDEFacade();
dispatcherMock.stubs().method("getIdeFacade").will(returnValue(myIDEFacade));
myTransport = new JabberTransport((JabberUI) myUIMock.proxy(), myFacade, myUserModel, (AsyncMessageDispatcher) dispatcherMock.proxy(), null);
disposeOnTearDown(myTransport);
myProjectContainer = Pico.getInstance().makeChildContainer();
}
use of jetbrains.communicator.core.impl.users.UserModelImpl in project intellij-plugins by JetBrains.
the class JabberUserFinderTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
myFacade = new MockIDEFacade(getClass());
myFacade.setReturnedProjectId("33333");
myUserModel = new UserModelImpl(getBroadcaster());
disposeOnTearDown(myUserModel);
myUserFinder = new JabberUserFinderImpl(myFacade, myUserModel);
}
use of jetbrains.communicator.core.impl.users.UserModelImpl in project intellij-plugins by JetBrains.
the class FindByJabberIdCommandTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
myJabberFacade = mock(JabberFacade.class);
myJabberUI = mock(JabberUI.class);
myUserModel = new UserModelImpl(getBroadcaster());
disposeOnTearDown(myUserModel);
myCommand = new FindByJabberIdCommand((JabberFacade) myJabberFacade.proxy(), (JabberUI) myJabberUI.proxy(), myUserModel);
assertNotNull(myCommand.getName());
assertTrue(myCommand.isEnabled());
}
use of jetbrains.communicator.core.impl.users.UserModelImpl 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.core.impl.users.UserModelImpl in project intellij-plugins by JetBrains.
the class ToggleFileAccessCommandTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
myUserListComponent = mock(UserListComponent.class);
myUserModel = new UserModelImpl(getBroadcaster());
disposeOnTearDown(myUserModel);
myCommand = new ToggleFileAccessCommand(myUserModel, (UserListComponent) myUserListComponent.proxy()) {
@Override
protected boolean isFocused() {
return true;
}
};
}
Aggregations