Ejemplo n.º 1
0
 /** Tests if all possible log settings are correctly passed on. Tests the default log level */
 @Test
 public void testSetLogLevelDefault() {
   Logger.setLogLevel(2);
   assertTrue(Logger.getLogInfo());
   assertTrue(Logger.getLogWarning());
 }
Ejemplo n.º 2
0
 /** Tests if all possible log settings are correctly passed on. Tests log level 1. */
 @Test
 public void testSetLogLevel1() {
   Logger.setLogLevel(1);
   assertFalse(Logger.getLogInfo());
   assertTrue(Logger.getLogWarning());
 }