use of com.intellij.history.core.InMemoryLocalHistoryFacade in project intellij-community by JetBrains.
the class RevisionsTest method testAfterRevisionForRootEntry.
@Test
public void testAfterRevisionForRootEntry() {
RootEntry root = new RootEntry();
LocalHistoryFacade facade = new InMemoryLocalHistoryFacade();
ChangeSet cs = addChangeSet(facade, createFile(root, "f1"));
addChangeSet(facade, createFile(root, "f2"));
Revision r = new ChangeRevision(facade, root, "", cs, false);
RootEntry e = (RootEntry) r.findEntry();
assertEquals(e.getClass(), RootEntry.class);
assertNotNull(e.findEntry("f1"));
assertNull(e.findEntry("f2"));
}
Aggregations