@Test(expected = InvalidVersionException.class) public void isQualifierValidOrFail() throws Exception { VersionUtil.isQualifierValidOrFail("Dev-SnAPSHoT-toto"); }
public static void isQualifierValidOrFail(String qualifier) { if (!isQualifierValid(qualifier)) { throw new InvalidVersionException("This qualifier [" + qualifier + "] is not valid as it does not match [" + QUALIFIER_PATTERN + "]"); } }
VersionUtil { public static void isQualifierValidOrFail(String qualifier) { if (!isQualifierValid(qualifier)) { throw new InvalidVersionException("This qualifier [" + qualifier + "] is not valid as it does not match [" + QUALIFIER_PATTERN + "]"); } } }
VersionUtil { public static void isQualifierValidOrFail(String qualifier) { if (!isQualifierValid(qualifier)) { throw new InvalidVersionException("This qualifier [" + qualifier + "] is not valid as it does not match [" + QUALIFIER_PATTERN + "]"); } } private  VersionUtil(); }
VersionUtil { public static void isQualifierValidOrFail(String qualifier) { if (!isQualifierValid(qualifier)) { throw new InvalidVersionException("This qualifier [" + qualifier + "] is not valid as it does not match [" + QUALIFIER_PATTERN + "]"); } } private  VersionUtil(); static boolean isSnapshot(String version); static boolean isValid(String version); static void isValidOrFail(String version); static Version parseVersion(String version); static int compare(String versionLeft, String versionRight); static boolean isQualifierValid(String qualifier); static void isQualifierValidOrFail(String qualifier); }
VersionUtil { public static void isQualifierValidOrFail(String qualifier) { if (!isQualifierValid(qualifier)) { throw new InvalidVersionException("This qualifier [" + qualifier + "] is not valid as it does not match [" + QUALIFIER_PATTERN + "]"); } } private  VersionUtil(); static boolean isSnapshot(String version); static boolean isValid(String version); static void isValidOrFail(String version); static Version parseVersion(String version); static int compare(String versionLeft, String versionRight); static boolean isQualifierValid(String qualifier); static void isQualifierValidOrFail(String qualifier); static final String DEFAULT_VERSION_NAME; static final Pattern VERSION_PATTERN; static final String SNAPSHOT_IDENTIFIER; static final Pattern QUALIFIER_PATTERN; }