assertEquals(987654321, mcp.getOffset1());
assertEquals(876543210, mcp.getOffset2());
}
public void testEquals() {
MonitorCheckpoint mcp1 = new MonitorCheckpoint("foo", 13, 987654321, 876543210);
MonitorCheckpoint mcp2 = new MonitorCheckpoint("foo", 13, 987654321, 876543210);
assertEquals(mcp1, mcp2);
assertEquals(mcp1.hashCode(), mcp2.hashCode());
MonitorCheckpoint mcp3 = new MonitorCheckpoint("bar", 13, 987654321, 876543210);
assertFalse(mcp1.equals(mcp3));
assertFalse(mcp1.hashCode() == mcp3.hashCode());
MonitorCheckpoint mcp4 = new MonitorCheckpoint("foo", 17, 987654321, 876543210);
assertFalse(mcp1.equals(mcp4));
assertFalse(mcp1.hashCode() == mcp4.hashCode());
MonitorCheckpoint mcp5 = new MonitorCheckpoint("foo", 13, 907654321, 876543210);
assertFalse(mcp1.equals(mcp5));
assertFalse(mcp1.hashCode() == mcp5.hashCode());
MonitorCheckpoint mcp6 = new MonitorCheckpoint("foo", 13, 907654321, 8765432170L);
assertFalse(mcp1.equals(mcp6));
assertFalse(mcp1.hashCode() == mcp6.hashCode());
}