34353637383940
public class ComparableVersionTest extends TestCase { private Comparable newComparable( String version ) { return new ComparableVersion( version ); }
196197198199200201202203204205206207
} } public void testReuse() { ComparableVersion c1 = new ComparableVersion( "1" ); c1.parseVersion( "2" ); Comparable c2 = newComparable( "2" ); assertEquals( "reused instance should be equivalent to new instance", c1, c2 ); }