@Test public void overwrites_an_existing_daemon_JAR_that_has_difference_file_size() throws IOException { overwriteWithFileOfSize(expectedContent.length + 1, steward.getDaemonJar(jumiHome)); Path daemonJar = steward.getDaemonJar(jumiHome); assertThat(FileUtils.readFileToByteArray(daemonJar.toFile()), is(expectedContent)); }
@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);  }