use of com.intellij.history.integration.ui.models.RecentChangeDialogModel in project intellij-community by JetBrains.
the class RecentChangeDialogTest method testRevertChange.
public void testRevertChange() throws IOException {
getVcs().beginChangeSet();
createChildData(myRoot, "f1.txt");
getVcs().endChangeSet("change");
getVcs().beginChangeSet();
createChildData(myRoot, "f2.txt");
getVcs().endChangeSet("another change");
RecentChange c = getVcs().getRecentChanges(getRootEntry()).get(1);
RecentChangeDialogModel m = new RecentChangeDialogModel(myProject, myGateway, getVcs(), c);
Reverter r = m.createReverter();
r.revert();
assertNull(myRoot.findChild("f1.txt"));
assertNotNull(myRoot.findChild("f2.txt"));
}
Aggregations