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