use of jetbrains.communicator.core.dispatcher.AsyncMessageDispatcher 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();
}
Aggregations