void () { Entry dir1 = new DirectoryEntry("dir1"); Entry dir2 = new DirectoryEntry("dir2"); Entry subDir1 = new DirectoryEntry("subDir"); Entry subDir2 = new DirectoryEntry("subDir"); Entry child1 = new FileEntry("name", c("content"), -1, false); Entry child2 = new FileEntry("name", c("content"), -1, false); dir1.addChild(subDir1); dir2.addChild(subDir2); subDir1.addChild(child1); subDir2.addChild(child2); List<Difference> dd = Entry.getDifferencesBetween(dir1, dir2); assertEquals(3, dd.size()); assertDirDifference(dd.get(0), dir1, dir2); assertDirDifference(dd.get(1), subDir1, subDir2); assertFileDifference(dd.get(2), child1, child2); }