4243444546474849
assertEquals("1.2.3.4-foo", v.toString()); } @Test public void testToStringA() throws Exception { Version v = new Version("5"); assertEquals("5", v.toString()); }
4849505152535455
assertEquals("5", v.toString()); } @Test public void testToStringAb() throws Exception { Version v = new Version("5-foo"); assertEquals("5-foo", v.toString()); }
5455565758596061
assertEquals("5-foo", v.toString()); } @Test public void testToStringB() throws Exception { Version v = new Version("5.7"); assertEquals("5.7", v.toString()); }
6061626364656667
assertEquals("5.7", v.toString()); } @Test public void testToStringBb() throws Exception { Version v = new Version("5.7-foo"); assertEquals("5.7-foo", v.toString()); }
6667686970717273
assertEquals("5.7-foo", v.toString()); } @Test public void testToStringC() throws Exception { Version v = new Version("1.5.2"); assertEquals("1.5.2", v.toString()); }
7273747576777879
assertEquals("1.5.2", v.toString()); } @Test public void testToStringCb() throws Exception { Version v = new Version("1.5.2-dev"); assertEquals("1.5.2-dev", v.toString()); }
7879808182838485
assertEquals("1.5.2-dev", v.toString()); } @Test public void testToStringD() throws Exception { Version v = new Version("4.3.2.1"); assertEquals("4.3.2.1", v.toString()); }
8485868788899091
assertEquals("4.3.2.1", v.toString()); } @Test public void testToStringDb() throws Exception { Version v = new Version("4.3.2.1-rel"); assertEquals("4.3.2.1-rel", v.toString()); }
909192939495969798
assertEquals("4.3.2.1-rel", v.toString()); } @Test public void testCompare2a() throws Exception { Version a = new Version(1, 2); Version b = new Version(1, 2); assertEquals(0, a.compareTo(b)); }
979899100101102103104105
assertEquals(0, a.compareTo(b)); } @Test public void testCompare2b() throws Exception { Version a = new Version(2, 2); Version b = new Version(1, 2); assertEquals(1, a.compareTo(b)); }