GDirectory { public void markTouched(File file) { this.touched.add(file); } GDirectory(String directory);  GDirectory(String directory, Charset charset); GClass getClass(String _fullClassName, Object... args); boolean exists(String fullClassName); void output(); void pruneIfNotTouched(); void pruneIfNotTouchedWithinUsedPackages(); List<File> getTouched(); void markTouched(File file); void markTouched(String fullClassName); List<File> getUsedDirectories(); List<File> getAllDirectories();  }
@Test public void testMarkTouched() { GDirectory bin = new GDirectory(this.directory); bin.getClass("org.exigencecorp.Foo"); bin.output(); Assert.assertEquals(Copy.list(new File(this.directory + "/org/exigencecorp/Foo.java")), bin.getTouched()); Assert.assertEquals(Copy.list(new File(this.directory + "/org/exigencecorp")), bin.getUsedDirectories()); Assert.assertEquals(Copy.list( new File(this.directory + "/org"), new File(this.directory + "/org/exigencecorp")), bin.getAllDirectories()); }