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));
}
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);
}
Aggregations