예제 #1
0
 @AfterMethod
 protected void deleteLog() {
   try {
     if (log.isOpen()) log.close();
   } catch (Exception ignore) {
   } finally {
     assertFalse(log.isOpen());
     assertTrue(log.isClosed());
     log.delete();
   }
 }
예제 #2
0
 @BeforeMethod
 void setLog() throws Exception {
   logId = UUID.randomUUID().toString();
   log = createLog();
   assertTrue(log.isOpen());
   assertFalse(log.isClosed());
   assertTrue(log.isEmpty());
 }