VersionUtils { public static Boolean isVersionValid(String version) { return !StringUtils.equals(version, NULL_VERSION) && isValidVersion(version); }  static Boolean isVersionValid(String version); static Boolean isVersionGreaterOrEquals(String version1, String version2); static String completeIncremental(String version); static String getBaseVersion(String version); static String getMajor(String version); static boolean isRange(String version);  }
@Test public void isProjectVersionValidTest() throws ValidationException { for (String validVersion : getValidVersions()) { if (!isVersionValid(validVersion)) { fail(validVersion + " should be a valid version"); } } }
@Test public void isProjectVersionValidFailTest() { for (String invalidVersion : getInvalidVersions()) { if (isVersionValid(invalidVersion)) { fail(invalidVersion + " should be a invalid version"); } } }