Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Rule
- public ExpectedException thrown = ExpectedException.none();
- @Test
- public void test() {
- // Configure rule to check the exception message
- testObject.exceptionRaisingMethod();
- }
Advertisement
Add Comment
Please, Sign In to add comment