use of com.intellij.history.integration.ui.models.DirectoryChangeModel in project intellij-community by JetBrains.
the class DirectoryChangeModelTest method testNames.
public void testNames() throws IOException {
VirtualFile f = createDirectory("foo");
rename(f, "bar");
List<Revision> revs = getRevisionsFor(f);
Difference d = new Difference(false, revs.get(0).findEntry(), revs.get(1).findEntry());
DirectoryChangeModel m = createModelOn(d);
assertEquals("bar", m.getEntryName(0));
assertEquals("foo", m.getEntryName(1));
}
use of com.intellij.history.integration.ui.models.DirectoryChangeModel in project intellij-community by JetBrains.
the class DirectoryChangeModelTest method testNamesForAbsentEntries.
public void testNamesForAbsentEntries() {
Difference d = new Difference(false, null, null);
DirectoryChangeModel m = createModelOn(d);
assertEquals("", m.getEntryName(0));
assertEquals("", m.getEntryName(1));
}
Aggregations