elvyssoares

Conditional Test Execution - Refactored

Dec 9th, 2021
616
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.29 KB | None | 0 0
  1. public boolean isEnglishLocale() {
  2.   return "en".equals(Locale.getDefault().getLanguage());
  3. }
  4.  
  5. @Test
  6. @EnableIf("isEnglishLocale")
  7. void returnsASetOfErrorsForAnObject() throws Exception {
  8.   ...
  9.   assertThat(errors).containsOnly(
  10.     "outOfRange must be between 10 and 30 MINUTES");
  11. }
Advertisement
Add Comment
Please, Sign In to add comment