Skip to content

Commit

Permalink
BVTCK-201 Submit compatible value for validation
Browse files Browse the repository at this point in the history
  • Loading branch information
mbenson authored and gsmet committed Apr 3, 2018
1 parent 0b4ffbe commit 54e5e3d
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import static org.testng.Assert.fail;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Set;

import javax.validation.ConstraintViolation;
Expand Down Expand Up @@ -173,12 +174,8 @@ public void testValidateValueWithNullPropertyName() {
public void testValidIsNotHonoredValidateValue() {
Validator validator = TestUtil.getValidatorUnderTest();

Customer customer = new Customer();
Order order = new Order();
customer.addOrder( order );

Set<ConstraintViolation<Customer>> constraintViolations = validator.validateValue(
Customer.class, "orders", order
Customer.class, "orders", Collections.singleton( new Order() )
);
assertNoViolations( constraintViolations );
}
Expand Down

0 comments on commit 54e5e3d

Please sign in to comment.