@Test public void testUndefined() { assertEquals(VersionHelper.compareVersion("undefined", "2.1.3-snapshot"), -1); assertEquals(VersionHelper.compareVersion("2.1.3", "undefined"), -1); }
public static int compareVersion(String versionOne, String versionTwo) { try { return compareVersionInt(versionOne, versionTwo); } catch (IllegalArgumentException iae) { return -1; } }
VersionHelper { public static int compareVersion(String versionOne, String versionTwo) { try { return compareVersionInt(versionOne, versionTwo); } catch (IllegalArgumentException iae) { return -1; } } }
VersionHelper { public static int compareVersion(String versionOne, String versionTwo) { try { return compareVersionInt(versionOne, versionTwo); } catch (IllegalArgumentException iae) { return -1; } }  }
VersionHelper { public static int compareVersion(String versionOne, String versionTwo) { try { return compareVersionInt(versionOne, versionTwo); } catch (IllegalArgumentException iae) { return -1; } }  static int compareVersion(String versionOne, String versionTwo); }
VersionHelper { public static int compareVersion(String versionOne, String versionTwo) { try { return compareVersionInt(versionOne, versionTwo); } catch (IllegalArgumentException iae) { return -1; } }  static int compareVersion(String versionOne, String versionTwo);  }