Search in sources :

Example 1 with MockJabberFacade

use of jetbrains.communicator.jabber.register.MockJabberFacade 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();
}
Also used : MockIDEFacade(jetbrains.communicator.mock.MockIDEFacade) AsyncMessageDispatcher(jetbrains.communicator.core.dispatcher.AsyncMessageDispatcher) MockJabberFacade(jetbrains.communicator.jabber.register.MockJabberFacade) JabberUI(jetbrains.communicator.jabber.JabberUI) UserModelImpl(jetbrains.communicator.core.impl.users.UserModelImpl) Mock(org.jmock.Mock)

Aggregations

AsyncMessageDispatcher (jetbrains.communicator.core.dispatcher.AsyncMessageDispatcher)1 UserModelImpl (jetbrains.communicator.core.impl.users.UserModelImpl)1 JabberUI (jetbrains.communicator.jabber.JabberUI)1 MockJabberFacade (jetbrains.communicator.jabber.register.MockJabberFacade)1 MockIDEFacade (jetbrains.communicator.mock.MockIDEFacade)1 Mock (org.jmock.Mock)1