DirectoryChangeModel { public FileDifferenceModel getFileDifferenceModel() { return new EntireFileDifferenceModel(myGateway, myDiff.getLeft(), myDiff.getRight(), isRightContentEditable); } DirectoryChangeModel(Difference d, IdeaGateway gw, boolean editableRightContent); Difference getDifference(); boolean isFile(); String getEntryName(int i); Entry getEntry(int i); FileDifferenceModel getFileDifferenceModel(); boolean canShowFileDifference(); ContentRevision getContentRevision(int i);  }
@Test public void testFileDifferenceModel() { Entry left = new FileEntry(-1, "left", c(""), 123L, false); Entry right = new FileEntry(-1, "right", c(""), 123L, false); Difference d = new Difference(false, left, right); DirectoryChangeModel dm = createModelOn(d); FileDifferenceModel m = dm.getFileDifferenceModel(); assertTrue(m.getLeftTitle(new NullRevisionsProgress()).endsWith("left")); assertTrue(m.getRightTitle(new NullRevisionsProgress()).endsWith("right")); }