Search in sources :

Example 21 with MockIDEFacade

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

the class PositionCorrectorTest method assertPositionCorrection.

public static void assertPositionCorrection(String src, String dest, int srcLine, int expectedLine) {
    PositionCorrector positionCorrector = new PositionCorrector(new MockIDEFacade(), src, dest);
    assertEquals("Invalid correction for line " + srcLine + '\n' + src + "\n-----------\n" + dest + '\n', expectedLine, positionCorrector.getCorrectedLine(srcLine));
}
Also used : MockIDEFacade(jetbrains.communicator.mock.MockIDEFacade)

Example 22 with MockIDEFacade

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

the class UIUtilTest method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    myIdeFacade = new MockIDEFacade();
    myIndicator = new MyProgressIndicator();
    myIdeFacade.setIndicator(myIndicator);
}
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