@Test public void testAllowEverything() { Assert.assertTrue("Latest runtime is not configured, shall support everything", underTest.isSupported("does not matter")); }
public boolean isSupported(String runtime) { boolean ret; if (Strings.isNullOrEmpty(latestSupportedRuntime)) { ret = true; } else { ret = versionComparator.compare(() -> runtime, () -> latestSupportedRuntime) <= 0; } return ret; }
SupportedRuntimes { public boolean isSupported(String runtime) { boolean ret; if (Strings.isNullOrEmpty(latestSupportedRuntime)) { ret = true; } else { ret = versionComparator.compare(() -> runtime, () -> latestSupportedRuntime) <= 0; } return ret; } }
SupportedRuntimes { public boolean isSupported(String runtime) { boolean ret; if (Strings.isNullOrEmpty(latestSupportedRuntime)) { ret = true; } else { ret = versionComparator.compare(() -> runtime, () -> latestSupportedRuntime) <= 0; } return ret; }  }
SupportedRuntimes { public boolean isSupported(String runtime) { boolean ret; if (Strings.isNullOrEmpty(latestSupportedRuntime)) { ret = true; } else { ret = versionComparator.compare(() -> runtime, () -> latestSupportedRuntime) <= 0; } return ret; }  boolean isSupported(String runtime); }
SupportedRuntimes { public boolean isSupported(String runtime) { boolean ret; if (Strings.isNullOrEmpty(latestSupportedRuntime)) { ret = true; } else { ret = versionComparator.compare(() -> runtime, () -> latestSupportedRuntime) <= 0; } return ret; }  boolean isSupported(String runtime);  }