@SpecAssertions({
@SpecAssertion(section = "6.2", id = "d"),
@SpecAssertion(section = "6.7", id = "g")
})
public void testFindConstraintsForConstructor() {
ConstructorDescriptor parameterConstrainedDescriptor = Executables.parameterConstrainedConstructor();
assertTrue(
parameterConstrainedDescriptor.findConstraints()
.getConstraintDescriptors()
.isEmpty(),
"Should have no constraints"
);
ConstructorDescriptor returnValueConstrainedDescriptor = Executables.returnValueConstrainedConstructor();
assertTrue(
returnValueConstrainedDescriptor.findConstraints()
.getConstraintDescriptors()
.isEmpty(),
"Should have no constraints"
);
ConstructorDescriptor crossParameterConstrainedDescriptor = Executables.crossParameterConstrainedConstructor();
assertTrue(
crossParameterConstrainedDescriptor.findConstraints()
.getConstraintDescriptors()
.isEmpty(),
"Should have no constraints"
);
}