assertTrue(fccp.compareTo(fccpN) < 0);
assertTrue(fccpN.compareTo(fccp) > 0);
}
public void testNextMajor() throws Exception {
DiffingConnectorCheckpoint fccp = DiffingConnectorCheckpoint.newFirst();
DiffingConnectorCheckpoint fccpN = fccp.next();
DiffingConnectorCheckpoint fccpNextMajor = fccpN.nextMajor();
assertEquals(fccp.getMajorNumber() + 1, fccpNextMajor.getMajorNumber());
assertEquals(fccp.getMinorNumber(), fccpNextMajor.getMinorNumber());
assertFalse(fccp.equals(fccpNextMajor));
DiffingConnectorCheckpoint fccpNextMajor2 =
DiffingConnectorCheckpoint.fromJsonString(fccpNextMajor.toString());
assertEquals(fccpNextMajor, fccpNextMajor2);
assertEquals(fccpNextMajor.hashCode(), fccpNextMajor2.hashCode());
assertTrue(fccp.compareTo(fccpNextMajor) < 0);
assertTrue(fccpN.compareTo(fccpNextMajor) < 0);
assertTrue(fccpNextMajor.compareTo(fccp) > 0);
assertTrue(fccpNextMajor.compareTo(fccpN) > 0);
assertTrue(fccpNextMajor.compareTo(fccpNextMajor2) == 0);