@Test public void exist() throws IOException { final FileSystemPathBase path = new FileSystemPathBase(testFolder.newFolder().toString(), "a"); new DirectoryWithAutomaticCreation(new DirectoryBase(path)).exist(); MatcherAssert.assertThat("The directory wasn't created", path.exist()); }
@Override public final boolean exist() { try { this.create(); return true; } catch (IOException e) { throw new RuntimeException(e); } }
DirectoryWithAutomaticCreation implements Directory { @Override public final boolean exist() { try { this.create(); return true; } catch (IOException e) { throw new RuntimeException(e); } } }
DirectoryWithAutomaticCreation implements Directory { @Override public final boolean exist() { try { this.create(); return true; } catch (IOException e) { throw new RuntimeException(e); } } DirectoryWithAutomaticCreation(Directory directory); }
DirectoryWithAutomaticCreation implements Directory { @Override public final boolean exist() { try { this.create(); return true; } catch (IOException e) { throw new RuntimeException(e); } } 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 boolean exist() { try { this.create(); return true; } catch (IOException e) { throw new RuntimeException(e); } } DirectoryWithAutomaticCreation(Directory directory); @Override final void create(); @Override final void remove(); @Override final Path path(); @Override final boolean exist();  }