Improving test

This commit is contained in:
Luca Frosini 2021-03-08 21:23:51 +01:00
parent 4047e587da
commit aa093f8e73
1 changed files with 4 additions and 2 deletions

View File

@ -54,9 +54,11 @@ public class MultiContextTest extends ContextTest {
if (isRelatedTo.getPropagationConstraint().getRemoveConstraint() == RemoveConstraint.cascadeWhenOrphan) {
expected.put(isRelatedTo.getHeader().getUUID(), isRelatedTo);
expected.putAll(getRemovedExpectedInstances(isRelatedTo.getTarget()));
List<IsRelatedTo> incoming = getIncomingIsRelatedTo(r);
if(incoming.size()==1) {
Assert.assertTrue(incoming.get(0).getHeader().getUUID().compareTo(isRelatedTo.getHeader().getUUID())==0);
expected.putAll(getRemovedExpectedInstances(isRelatedTo.getTarget()));
}
}
}