elvyssoares

DoubletonSetTest - Refactored - Simplified

Jun 5th, 2020
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.22 KB | None | 0 0
  1. @Test
  2. public void test() {
  3.     Throwable thrown = catchThrowable(() -> testObject.specificExceptionRaisingMethod());
  4.     assertThat(thrown).isInstanceOf(SpecificException.class);
  5.     // Assert test object state
  6. }
Advertisement
Add Comment
Please, Sign In to add comment