elvyssoares

Exception Handling 3 - Refactored - Toy Example

Jun 10th, 2020
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.23 KB | None | 0 0
  1. private MyClass c;
  2. @Before
  3. public void setup() throws Exception {
  4.     c = new MyClass();
  5.     c.initialize();
  6. }
  7. @Test
  8. public void test() throws Exception {
  9.     assertTrue(c.isA());
  10. }
  11. @After
  12. public void tearDown() throws Exception {
  13.     c.finalize();
  14. }
Advertisement
Add Comment
Please, Sign In to add comment