private void assertRename(String expected, String path, List renames) {
assertEquals(expected, PathRenamingInstruction.renamePath(renames, path));
}
public void testIsRenamingOperation() {
PathRenamingInstruction r = new PathRenamingInstruction("/Foo", "Bar");
TimeLogEntry tle = PathRenamer.toTimeLogEntry(r);
MutableTimeLogEntry m = new MutableTimeLogEntryVO(tle);
assertTrue(PathRenamer.isRenamingOperation(m));
m.setPath("null");
assertFalse(PathRenamer.isRenamingOperation(m));