void (int expectedLinesChanged) { myFixture.configureByFile(getTestName(true) + "_revision.java"); PsiFile file = myFixture.getFile(); CharSequence revisionContent = myFixture.getDocument(file).getCharsSequence(); myFixture.configureByFile(getTestName(true) + ".java"); file = myFixture.getFile(); Document document = myFixture.getDocument(file); int linesChanged = VcsFacade.getInstance().calculateChangedLinesNumber(document, revisionContent); Assert.assertTrue(linesChanged > 0); Assert.assertEquals(expectedLinesChanged, linesChanged); }