@Test(expected = FileNotFoundException.class) public void test404ForIndex() throws Exception { updater = new TestUpdater(indexURL, "UnitTest", dir, null); updater.call(); }
@Override protected UpdateSummary call() throws Exception { highestLocalVersion = UpdateFX.extractVerFromFilename(UpdateFX.findBestJar(pathToOrigJar, localUpdatesDir)); newHighestVersion = highestLocalVersion; UFXProtocol.Updates updates = processSignedIndex(downloadSignedIndex()); return new UpdateSummary(newHighestVersion, updates); }
Updater extends Task<UpdateSummary> { @Override protected UpdateSummary call() throws Exception { highestLocalVersion = UpdateFX.extractVerFromFilename(UpdateFX.findBestJar(pathToOrigJar, localUpdatesDir)); newHighestVersion = highestLocalVersion; UFXProtocol.Updates updates = processSignedIndex(downloadSignedIndex()); return new UpdateSummary(newHighestVersion, updates); } }
Updater extends Task<UpdateSummary> { @Override protected UpdateSummary call() throws Exception { highestLocalVersion = UpdateFX.extractVerFromFilename(UpdateFX.findBestJar(pathToOrigJar, localUpdatesDir)); newHighestVersion = highestLocalVersion; UFXProtocol.Updates updates = processSignedIndex(downloadSignedIndex()); return new UpdateSummary(newHighestVersion, updates); } Updater(URI indexURL, String userAgent, Path localUpdatesDir,
                   Path pathToOrigJar, List<ECPoint> pubkeys, int requiredSigningThreshold); }
Updater extends Task<UpdateSummary> { @Override protected UpdateSummary call() throws Exception { highestLocalVersion = UpdateFX.extractVerFromFilename(UpdateFX.findBestJar(pathToOrigJar, localUpdatesDir)); newHighestVersion = highestLocalVersion; UFXProtocol.Updates updates = processSignedIndex(downloadSignedIndex()); return new UpdateSummary(newHighestVersion, updates); } Updater(URI indexURL, String userAgent, Path localUpdatesDir,
                   Path pathToOrigJar, List<ECPoint> pubkeys, int requiredSigningThreshold); void setOverrideURLs(boolean overrideURLs); }
Updater extends Task<UpdateSummary> { @Override protected UpdateSummary call() throws Exception { highestLocalVersion = UpdateFX.extractVerFromFilename(UpdateFX.findBestJar(pathToOrigJar, localUpdatesDir)); newHighestVersion = highestLocalVersion; UFXProtocol.Updates updates = processSignedIndex(downloadSignedIndex()); return new UpdateSummary(newHighestVersion, updates); } Updater(URI indexURL, String userAgent, Path localUpdatesDir,
                   Path pathToOrigJar, List<ECPoint> pubkeys, int requiredSigningThreshold); void setOverrideURLs(boolean overrideURLs);  }