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