use of com.intellij.history.integration.ui.models.FileHistoryDialogModel in project intellij-community by JetBrains.
the class FileHistoryDialogTest method testRevertion.
public void testRevertion() throws Exception {
VirtualFile dir = createChildDirectory(myRoot, "oldDir");
VirtualFile f = createChildData(dir, "old.txt");
rename(f, "new.txt");
rename(dir, "newDir");
FileHistoryDialogModel m = createFileModelAndSelectRevisions(f, 1, 1);
m.createReverter().revert();
assertEquals("old.txt", f.getName());
assertEquals(f.getParent(), dir);
assertEquals("newDir", dir.getName());
}
Aggregations