@SpecAssertion(section = "6.2", id = "d"),
@SpecAssertion(section = "6.2", id = "g"),
@SpecAssertion(section = "6.7", id = "g")
})
public void testFindConstraintsForMethodDefinedOnSuperTypeLookingAt() {
MethodDescriptor crossParameterConstrainedDescriptor = Executables.crossParameterConstrainedMethodFromSuperType();
assertEquals(
crossParameterConstrainedDescriptor.findConstraints()
.lookingAt( Scope.LOCAL_ELEMENT )
.getConstraintDescriptors()
.size(),
0,
"Should have no local constraints"
);
assertTrue(
crossParameterConstrainedDescriptor.findConstraints().lookingAt( Scope.HIERARCHY )
.getConstraintDescriptors()
.isEmpty(),
"Should have no hierarchy constraint"
);
}