It'll lets us write:
{code} assertSingleConstraintViolation( violations, NotNull.class, "may not be null" ); {code}
instead of:
{code} assertNumberOfViolations( violations, 1 ); assertConstraintViolation( violations.iterator().next(), NotNull.class, "may not be null" ); {code} We introduced |
|