elvyssoares

SelfValidationTest - Refactored

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