void () { String file1 = createFile("dir1/a.txt", "a"); String file2 = createFile("dir2/b.txt", "b"); JpsArtifact a = addArtifact(root().parentDirCopy(file1).parentDirCopy(file2)); buildAll(); assertOutput(a, fs().file("a.txt", "a").file("b.txt", "b")); a.getRootElement().removeChild(a.getRootElement().getChildren().get(0)); buildAll(); assertOutput(a, fs().file("b.txt", "b")); buildAllAndAssertUpToDate(); }