assertEquals( "Patch not correct", 0, version.getPatch() );
assertEquals( "Release Candidate not correct", null, version.getCandidate() );
}
public void testComparisons() {
CruiseVersion version = new CruiseVersion( "2.7.1-RC3" );
assertTrue( "Version is greater than 2.6", version.isEqualOrNewerThan( 2, 6, 0) );
assertTrue( "Version is greater than 2.7", version.isEqualOrNewerThan( 2, 7, 0) );
assertTrue( "Version equals 2.7.1", version.isEqualOrNewerThan( 2, 7, 1) );
assertFalse( "Version is less than 2.7.2", version.isEqualOrNewerThan( 2, 7, 2) );
}