Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Test
- public void test() {
- MyClass c = new MyClass();
- Throwable t = catchThrowable(() -> c.throwSomeException());
- assertThat(t).isInstanceOf(SomeException.class);
- assertTrue(c.isA());
- assertTrue(c.isB());
- assertTrue(c.isC());
- }
Advertisement
Add Comment
Please, Sign In to add comment