Improving test
This commit is contained in:
parent
4047e587da
commit
aa093f8e73
|
@ -54,9 +54,11 @@ public class MultiContextTest extends ContextTest {
|
||||||
|
|
||||||
if (isRelatedTo.getPropagationConstraint().getRemoveConstraint() == RemoveConstraint.cascadeWhenOrphan) {
|
if (isRelatedTo.getPropagationConstraint().getRemoveConstraint() == RemoveConstraint.cascadeWhenOrphan) {
|
||||||
expected.put(isRelatedTo.getHeader().getUUID(), isRelatedTo);
|
expected.put(isRelatedTo.getHeader().getUUID(), isRelatedTo);
|
||||||
expected.putAll(getRemovedExpectedInstances(isRelatedTo.getTarget()));
|
|
||||||
|
|
||||||
List<IsRelatedTo> incoming = getIncomingIsRelatedTo(r);
|
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()));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue