assertEquals(true, mcc.compare(m1, m2) == 0);
}
public void testCompareToFinoAPianoDeiConti() {
m1 = new MovimentoContabile(new MovimentoContabileId(1, 1), "DB", "SOFIA", 0);
m1.setPianoDeiConti(null);
m2 = new MovimentoContabile(new MovimentoContabileId(1, 1), "DB", "SOFIA", 0);
m2.setPianoDeiConti(new PianoDeiConti());
assertEquals(true, mcc.compare(m1, m2) < 0);
assertEquals(true, mcc.compare(m2, m1) > 0);
m1 = new MovimentoContabile(new MovimentoContabileId(1, 1), "DB", "SOFIA", 0);
m1.setPianoDeiConti(new PianoDeiConti());
m2 = new MovimentoContabile(new MovimentoContabileId(1, 1), "DB", "SOFIA", 0);
m2.setPianoDeiConti(null);
assertEquals(true, mcc.compare(m1, m2) > 0);
assertEquals(true, mcc.compare(m2, m1) < 0);