@Test public void creates_a_daemon_directory() { Path daemonDir = steward.createDaemonDir(jumiHome); assertThat("should be under $JUMI_HOME/daemons", daemonDir.getParent(), is(jumiHome.resolve("daemons"))); assertThat("should be a directory", Files.isDirectory(daemonDir), is(true)); }
@Override public Path createDaemonDir(Path jumiHome) { try { return UniqueDirectories.createUniqueDir(jumiHome.resolve(DAEMONS_DIR), System.currentTimeMillis()); } catch (IOException e) { throw new RuntimeException("Unable to create daemon directory", e); } }
DirBasedSteward implements Steward { @Override public Path createDaemonDir(Path jumiHome) { try { return UniqueDirectories.createUniqueDir(jumiHome.resolve(DAEMONS_DIR), System.currentTimeMillis()); } catch (IOException e) { throw new RuntimeException("Unable to create daemon directory", e); } } }
DirBasedSteward implements Steward { @Override public Path createDaemonDir(Path jumiHome) { try { return UniqueDirectories.createUniqueDir(jumiHome.resolve(DAEMONS_DIR), System.currentTimeMillis()); } catch (IOException e) { throw new RuntimeException("Unable to create daemon directory", e); } } DirBasedSteward(DaemonJar daemonJar); }
DirBasedSteward implements Steward { @Override public Path createDaemonDir(Path jumiHome) { try { return UniqueDirectories.createUniqueDir(jumiHome.resolve(DAEMONS_DIR), System.currentTimeMillis()); } catch (IOException e) { throw new RuntimeException("Unable to create daemon directory", e); } } DirBasedSteward(DaemonJar daemonJar); @Override Path createDaemonDir(Path jumiHome); @Override Path getDaemonJar(Path jumiHome); }
DirBasedSteward implements Steward { @Override public Path createDaemonDir(Path jumiHome) { try { return UniqueDirectories.createUniqueDir(jumiHome.resolve(DAEMONS_DIR), System.currentTimeMillis()); } catch (IOException e) { throw new RuntimeException("Unable to create daemon directory", e); } } DirBasedSteward(DaemonJar daemonJar); @Override Path createDaemonDir(Path jumiHome); @Override Path getDaemonJar(Path jumiHome);  }