@Test public void does_not_copy_the_daemon_JAR_if_it_has_already_been_copied() throws IOException { FileTime lastModified1 = Files.getLastModifiedTime(steward.getDaemonJar(jumiHome)); FileTime lastModified2 = Files.getLastModifiedTime(steward.getDaemonJar(jumiHome)); assertThat(lastModified2, is(lastModified1)); }
@Override public Path getDaemonJar(Path jumiHome) { Path extractedJar = jumiHome.resolve("lib/" + daemonJar.getDaemonJarName()); createIfDoesNotExist(extractedJar); return extractedJar; }
DirBasedSteward implements Steward { @Override public Path getDaemonJar(Path jumiHome) { Path extractedJar = jumiHome.resolve("lib/" + daemonJar.getDaemonJarName()); createIfDoesNotExist(extractedJar); return extractedJar; } }
DirBasedSteward implements Steward { @Override public Path getDaemonJar(Path jumiHome) { Path extractedJar = jumiHome.resolve("lib/" + daemonJar.getDaemonJarName()); createIfDoesNotExist(extractedJar); return extractedJar; } DirBasedSteward(DaemonJar daemonJar); }
DirBasedSteward implements Steward { @Override public Path getDaemonJar(Path jumiHome) { Path extractedJar = jumiHome.resolve("lib/" + daemonJar.getDaemonJarName()); createIfDoesNotExist(extractedJar); return extractedJar; } DirBasedSteward(DaemonJar daemonJar); @Override Path createDaemonDir(Path jumiHome); @Override Path getDaemonJar(Path jumiHome); }
DirBasedSteward implements Steward { @Override public Path getDaemonJar(Path jumiHome) { Path extractedJar = jumiHome.resolve("lib/" + daemonJar.getDaemonJarName()); createIfDoesNotExist(extractedJar); return extractedJar; } DirBasedSteward(DaemonJar daemonJar); @Override Path createDaemonDir(Path jumiHome); @Override Path getDaemonJar(Path jumiHome);  }