use of jetbrains.communicator.jabber.JabberUI 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.jabber.JabberUI 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.jabber.JabberUI in project intellij-plugins by JetBrains.
the class JabberTransport_ConnectionTest method createTransport.
@Override
protected Transport createTransport() {
myFacade = new JabberFacadeImpl(myIdeFacade);
myUserFinder = new MockUserFinder();
Mock mockUI = createJabberUIMock();
myTransport = new JabberTransport((JabberUI) mockUI.proxy(), myFacade, myUserModel, myDispatcher, myUserFinder) {
@Override
public void synchronizeRoster(boolean removeUsersNotInRoster) {
super.synchronizeRoster(removeUsersNotInRoster);
myUsersSynchronized = true;
}
};
Pico.getInstance().registerComponentInstance(myTransport);
disposeOnTearDown(myFacade);
disposeOnTearDown(myTransport);
return myTransport;
}
Aggregations