use of com.intellij.history.core.tree.RootEntry in project intellij-community by JetBrains.
the class StreamTest method testROStatusChange.
@Test
public void testROStatusChange() throws IOException {
Entry root = new RootEntry();
Change c = new ROStatusChange(nextId(), "f", true);
StreamUtil.writeChange(os, c);
Change read = StreamUtil.readChange(is);
assertEquals(ROStatusChange.class, read.getClass());
ROStatusChange result = ((ROStatusChange) read);
assertEquals("f", result.getPath());
assertEquals(true, result.getOldStatus());
}
use of com.intellij.history.core.tree.RootEntry in project intellij-community by JetBrains.
the class SelectionCalculatorTest method createRevisions.
private List<Revision> createRevisions(String... contents) {
RootEntry r = new RootEntry();
vcs.addChangeInTests(createFile(r, "f", contents[0], -1, false));
for (int i = 1; i < contents.length; i++) {
vcs.addChangeInTests(changeContent(r, "f", contents[i], i));
}
return collectRevisions(vcs, r, "f", null, null);
}
Aggregations