@Test public void passesFreshReleasesAsCurrentVersion() { setResponse("0.2.9", "0.2.0"); assertTrue(checker.isCurrent("0.2.10")); }
@Override public boolean isCurrent(String version) { load(); Version currentVersion = Version.valueOf(desktopVersion.getCurrentAppVersion()); Version appVersion = Version.valueOf(version); return appVersion.greaterThanOrEqualTo(currentVersion); }
HttpUpdateChecker implements UpdateChecker { @Override public boolean isCurrent(String version) { load(); Version currentVersion = Version.valueOf(desktopVersion.getCurrentAppVersion()); Version appVersion = Version.valueOf(version); return appVersion.greaterThanOrEqualTo(currentVersion); } }
HttpUpdateChecker implements UpdateChecker { @Override public boolean isCurrent(String version) { load(); Version currentVersion = Version.valueOf(desktopVersion.getCurrentAppVersion()); Version appVersion = Version.valueOf(version); return appVersion.greaterThanOrEqualTo(currentVersion); } HttpUpdateChecker(HttpClient client);  HttpUpdateChecker(); }
HttpUpdateChecker implements UpdateChecker { @Override public boolean isCurrent(String version) { load(); Version currentVersion = Version.valueOf(desktopVersion.getCurrentAppVersion()); Version appVersion = Version.valueOf(version); return appVersion.greaterThanOrEqualTo(currentVersion); } HttpUpdateChecker(HttpClient client);  HttpUpdateChecker(); @Override VersionInformation loadInfos(); @Override boolean isCurrent(String version); @Override LatestVersionInfo getDesktopVersion(); @Override boolean isAllowed(String version); }
HttpUpdateChecker implements UpdateChecker { @Override public boolean isCurrent(String version) { load(); Version currentVersion = Version.valueOf(desktopVersion.getCurrentAppVersion()); Version appVersion = Version.valueOf(version); return appVersion.greaterThanOrEqualTo(currentVersion); } HttpUpdateChecker(HttpClient client);  HttpUpdateChecker(); @Override VersionInformation loadInfos(); @Override boolean isCurrent(String version); @Override LatestVersionInfo getDesktopVersion(); @Override boolean isAllowed(String version);  }