.getConstructor(
String.class,
Item.class,
byte.class
);
OrderServiceWithRedefinedDefaultGroupSequence returnValue = new OrderServiceWithRedefinedDefaultGroupSequence(
""
);
Set<ConstraintViolation<OrderServiceWithRedefinedDefaultGroupSequence>> violations = executableValidator
.validateConstructorReturnValue(
constructor,
returnValue
);
//Only the constraints of the Basic group should fail
assertCorrectConstraintTypes( violations, Size.class, ValidOrderService.class );
assertCorrectPathNodeNames(
violations,
names( className, TestUtil.RETURN_VALUE_NODE_NAME ),
names( className, TestUtil.RETURN_VALUE_NODE_NAME, "name" )
);
assertCorrectPathNodeKinds(
violations,
kinds( ElementKind.CONSTRUCTOR, ElementKind.RETURN_VALUE ),
kinds( ElementKind.CONSTRUCTOR, ElementKind.RETURN_VALUE, ElementKind.PROPERTY )
);
returnValue = new OrderServiceWithRedefinedDefaultGroupSequence( "valid" );
violations = executableValidator.validateConstructorReturnValue(
constructor,
returnValue
);