Skip to content

Commit

Permalink
BVTCK-32 Fixing wrong assertion in test from BV 1.0 TCK. As discussed…
Browse files Browse the repository at this point in the history
… with the EG, two violated @SecurityCheck constraints should be reported.
  • Loading branch information
gunnarmorling committed Feb 6, 2013
1 parent 2dad45c commit 8da51bf
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -67,9 +67,9 @@ public void testClassLevelConstraints() {
Set<ConstraintViolation<Woman>> violations = validator.validate( sarah );

assertCorrectNumberOfViolations(
violations, 1
); // SecurityCheck for Default in Person
assertCorrectConstraintTypes( violations, SecurityCheck.class );
violations, 2
); // SecurityCheck for Default in Person and Citizen
assertCorrectConstraintTypes( violations, SecurityCheck.class, SecurityCheck.class );

violations = validator.validate( sarah, TightSecurity.class );
assertCorrectNumberOfViolations(
Expand Down

0 comments on commit 8da51bf

Please sign in to comment.