コード例 #1
0
 @After
 public void cleanUp() throws Exception {
   try {
     localCleanUp();
   } catch (Exception e) {
     e.printStackTrace();
     throw e;
   }
   cleanupSystem();
 }
コード例 #2
0
 @Before
 public void setUp() throws Exception {
   initializeSystem();
   try {
     localReset();
   } catch (Exception e) {
     System.out.println("Warning: Preclean failed: " + e.getMessage());
   }
   try {
     localSetUp();
   } catch (Exception e) {
     e.printStackTrace();
     throw e;
   }
 }