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