comparator.add(membersRemoved);
}
public void testCheckRemoved() {
IReport report = comparator.evaluate();
assertNotNull(report);
List<IDifference> differences = report.getDifferences();
assertNotNull(differences);
assertTrue(differences.isEmpty());
//now we modify the model: adding a member to the AM is equal to remove
//the member from the DM
amModelItem.addMember(new Operation());
//reevaluate
report = comparator.evaluate();
differences = report.getDifferences();
assertFalse(differences.isEmpty());
assertTrue("There must be 2 differences. Found: " + differences.size(),
differences.size() == 2);
assertEquals("There must be a Difference in the state MODIFIED",
IDifference.Status.MODIFIED,
report.getDifferences().get(0).getStatus());
assertEquals("There must be a Difference in the state REMOVED",
IDifference.Status.REMOVED,
report.getDifferences().get(1).getStatus());
}