Esempio n. 1
0
 @Test
 public void testDelete() {
   logView = new LogView();
   logView.open();
   assertFalse("There must be messages", logView.getErrorMessages().isEmpty());
   logView.deleteLog();
   assertTrue("There should be no messages", logView.getErrorMessages().isEmpty());
   logView.restoreLog();
   assertTrue("There should be no messages", logView.getErrorMessages().isEmpty());
 }
Esempio n. 2
0
 @Test
 public void testClearAndRestore() {
   logView = new LogView();
   logView.open();
   assertFalse("There must be messages", logView.getErrorMessages().isEmpty());
   logView.clearLog();
   assertFalse("There should be messages", logView.getErrorMessages().isEmpty());
   logView.restoreLog();
   assertFalse("There should be messages", logView.getErrorMessages().isEmpty());
 }