Search in sources :

Example 1 with MockIDEFacade

use of jetbrains.communicator.mock.MockIDEFacade 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)

Example 2 with MockIDEFacade

use of jetbrains.communicator.mock.MockIDEFacade in project intellij-plugins by JetBrains.

the class JabberFacade_ConnectionTest method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    myIDEFacade = new MockIDEFacade(getClass());
    myFacade = new JabberFacadeImpl(myIDEFacade);
    myUser = USER + System.currentTimeMillis();
}
Also used : MockIDEFacade(jetbrains.communicator.mock.MockIDEFacade)

Example 3 with MockIDEFacade

use of jetbrains.communicator.mock.MockIDEFacade 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);
}
Also used : MockIDEFacade(jetbrains.communicator.mock.MockIDEFacade) UserModelImpl(jetbrains.communicator.core.impl.users.UserModelImpl)

Example 4 with MockIDEFacade

use of jetbrains.communicator.mock.MockIDEFacade in project intellij-plugins by JetBrains.

the class RegistrationFormTest method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    myFacade = new MockJabberFacade();
    myTextAcceptor = new TextAcceptor() {

        @Override
        public void setText(String text) {
            myErrorText = text;
        }
    };
    myIdeFacade = new MockIDEFacade();
    myForm = new RegistrationForm(myFacade, myIdeFacade, myTextAcceptor);
}
Also used : TextAcceptor(jetbrains.communicator.util.TextAcceptor) MockIDEFacade(jetbrains.communicator.mock.MockIDEFacade)

Example 5 with MockIDEFacade

use of jetbrains.communicator.mock.MockIDEFacade in project intellij-plugins by JetBrains.

the class JabberFacadeTest method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    myIDEFacade = new MockIDEFacade(getClass());
    myFacade = new JabberFacadeImpl(myIDEFacade);
    myFacade.getMyAccount().setRememberPassword(true);
}
Also used : MockIDEFacade(jetbrains.communicator.mock.MockIDEFacade)

Aggregations

MockIDEFacade (jetbrains.communicator.mock.MockIDEFacade)22 UserModelImpl (jetbrains.communicator.core.impl.users.UserModelImpl)8 LocalMessageDispatcherImpl (jetbrains.communicator.core.impl.dispatcher.LocalMessageDispatcherImpl)6 MockUser (jetbrains.communicator.mock.MockUser)5 Tree (com.intellij.ui.treeStructure.Tree)2 AsyncMessageDispatcherImpl (jetbrains.communicator.core.impl.dispatcher.AsyncMessageDispatcherImpl)2 Mock (org.jmock.Mock)2 ConsoleView (com.intellij.execution.ui.ConsoleView)1 Project (com.intellij.openapi.project.Project)1 TreePath (javax.swing.tree.TreePath)1 AsyncMessageDispatcher (jetbrains.communicator.core.dispatcher.AsyncMessageDispatcher)1 Transport (jetbrains.communicator.core.transport.Transport)1 SettingsChanged (jetbrains.communicator.core.users.SettingsChanged)1 User (jetbrains.communicator.core.users.User)1 UserModel (jetbrains.communicator.core.users.UserModel)1 IDEtalkMessagesWindow (jetbrains.communicator.idea.IDEtalkMessagesWindow)1 JabberUI (jetbrains.communicator.jabber.JabberUI)1 MockJabberFacade (jetbrains.communicator.jabber.register.MockJabberFacade)1 TextAcceptor (jetbrains.communicator.util.TextAcceptor)1 WaitFor (jetbrains.communicator.util.WaitFor)1