@Test public void remove() throws IOException { final FileSystemPathBase path = new FileSystemPathBase(testFolder.newFolder().toString()); new DirectoryWithAutomaticCreation(new DirectoryBase(path)).remove(); MatcherAssert.assertThat("The directory wasn't removed", !path.exist()); }
@Override public final void remove() throws IOException { this.directory.remove(); }
DirectoryWithAutomaticCreation implements Directory { @Override public final void remove() throws IOException { this.directory.remove(); } }
DirectoryWithAutomaticCreation implements Directory { @Override public final void remove() throws IOException { this.directory.remove(); } DirectoryWithAutomaticCreation(Directory directory); }
DirectoryWithAutomaticCreation implements Directory { @Override public final void remove() throws IOException { this.directory.remove(); } DirectoryWithAutomaticCreation(Directory directory); @Override final void create(); @Override final void remove(); @Override final Path path(); @Override final boolean exist(); }
DirectoryWithAutomaticCreation implements Directory { @Override public final void remove() throws IOException { this.directory.remove(); } DirectoryWithAutomaticCreation(Directory directory); @Override final void create(); @Override final void remove(); @Override final Path path(); @Override final boolean exist();  }