@Test public void testGetStartRange() throws Exception { Version v = new Version("1,2"); Assert.assertNotNull(v.getStartRange()); Assert.assertEquals("1", v.getStartRange()); Version v1 = new Version("1.2"); Assert.assertNotNull(v1.getStartRange()); }
public String getStartRange() { String[] parts = version.split(",", 2); return parts[0].trim(); }
Version { public String getStartRange() { String[] parts = version.split(",", 2); return parts[0].trim(); } }
Version { public String getStartRange() { String[] parts = version.split(",", 2); return parts[0].trim(); } Version(final String version); }
Version { public String getStartRange() { String[] parts = version.split(",", 2); return parts[0].trim(); } Version(final String version); boolean isRange(); String getVersion(); String getStartRange(); String getEndRange(); boolean minorVersionSupport(); boolean majorVersionSupport(); @Override boolean equals(Object o); @Override int hashCode(); }
Version { public String getStartRange() { String[] parts = version.split(",", 2); return parts[0].trim(); } Version(final String version); boolean isRange(); String getVersion(); String getStartRange(); String getEndRange(); boolean minorVersionSupport(); boolean majorVersionSupport(); @Override boolean equals(Object o); @Override int hashCode();  }