use of com.sun.identity.entitlement.xacml3.core.AdviceExpressions in project OpenAM by OpenRock.
the class XACMLSchemaFactoryTest method assertEqualAdviceExpressions.
/**
* Assert that two advice expressions objects contain the same values, i.e. that the advice expression objects
* they contain, contain the same values.
* @param aes1 the first advice expressions object
* @param aes2 the second advice expressions object
*/
private void assertEqualAdviceExpressions(final AdviceExpressions aes1, final AdviceExpressions aes2) {
assertThat(aes1.getAdviceExpression().size()).isEqualTo(aes2.getAdviceExpression().size());
for (AdviceExpression ae : aes1.getAdviceExpression()) {
boolean found = false;
for (AdviceExpression other : aes2.getAdviceExpression()) {
if (checkEqualAdviceExpressionValues(ae, other)) {
found = true;
break;
}
}
assertThat(found).isTrue();
}
}
Aggregations