elvyssoares

SelfValidationTest - Original

May 19th, 2020
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.51 KB | None | 0 0
  1. @Test
  2. public void correctExample() {
  3.     assertThat(ConstraintViolations.format(validator.validate(new CorrectExample()))).isEmpty();
  4.     assertThat(TestLoggerFactory.getAllLoggingEvents()).isEmpty();
  5. }
  6.  
  7. @Test
  8. public void multipleTestingOfSameClass() {
  9.     assertThat(ConstraintViolations.format(validator.validate(new CorrectExample()))).isEmpty();
  10.     assertThat(ConstraintViolations.format(validator.validate(new CorrectExample()))).isEmpty();
  11.     assertThat(TestLoggerFactory.getAllLoggingEvents()).isEmpty();
  12. }
Advertisement
Add Comment
Please, Sign In to add comment