@SpecAssertions({
@SpecAssertion(section = "6.2", id = "d"),
@SpecAssertion(section = "6.7", id = "g")
})
public void testFindConstraintsForMethod() {
MethodDescriptor parameterConstrainedDescriptor = Executables.parameterConstrainedMethod();
assertTrue(
parameterConstrainedDescriptor.findConstraints()
.getConstraintDescriptors()
.isEmpty(),
"Should have no constraints"
);
MethodDescriptor returnValueConstrainedDescriptor = Executables.returnValueConstrainedMethod();
assertTrue(
returnValueConstrainedDescriptor.findConstraints()
.getConstraintDescriptors()
.isEmpty(),
"Should have no constraints"
);
MethodDescriptor crossParameterConstrainedDescriptor = Executables.crossParameterConstrainedMethod();
assertTrue(
crossParameterConstrainedDescriptor.findConstraints()
.getConstraintDescriptors()
.isEmpty(),
"Should have no constraints"
);
}