Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Test
- public void test() {
- MyClass c = new MyClass();
- try {
- c.throwSomeException();
- Assert.fail("Exception not thrown");
- } catch (SomeException e) {
- assertTrue(c.isA());
- assertTrue(c.isB());
- assertTrue(c.isC());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment