Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Test
- public void test() throws Exception {
- try {
- testObject.exceptionRaisingMethod();
- Assert.fail("Specific exception was not raised");
- } catch (Exception e) {
- // Assert exception message
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment