assertEquals("level: LOAD_DEBUG2: bad string expr",
String.valueOf(BasicLevel.DEBUG + 2),
((LevelImpl) le).getStringValue());
//------ Handler ------//
Handler h = null;
h = hf.getHandler("myhandler1");
assertNotNull("handler: myhandler1: undefined", h);
assertEquals("handler: myhandler1: bad type",
PropertiesConfAccess.HANDLER_TYPE_ATTRIBUTE_CONSOLE_VALUE, h.getType());
assertEquals("handler: myhandler1: bad output",
"System.out", h.getAttribute(Handler.OUTPUT_ATTRIBUTE));
assertEquals("handler: myhandler1: bad pattern",
"%m%n", h.getAttribute(Handler.PATTERN_ATTRIBUTE));
h = hf.getHandler("test.load.myhandler2");
assertNotNull("handler: test.load.myhandler2: undefined", h);
assertEquals("handler: test.load.myhandler2: bad type",
PropertiesConfAccess.HANDLER_TYPE_ATTRIBUTE_FILE_VALUE, h.getType());
assertEquals("handler: test.load.myhandler2: bad output",
"myhandler2.log", h.getAttribute(Handler.OUTPUT_ATTRIBUTE));
assertEquals("handler: test.load.myhandler2: bad pattern",
"=> %m%n", h.getAttribute(Handler.PATTERN_ATTRIBUTE));
h = hf.getHandler("test.load.myhandler3");
assertNotNull("handler: test.load.myhandler3: undefined", h);
assertEquals("handler: test.load.myhandler3: bad type",
PropertiesConfAccess.HANDLER_TYPE_ATTRIBUTE_ROLLING_FILE_VALUE, h.getType());
assertEquals("handler: test.load.myhandler2: bad output",
"myhandler3.log", h.getAttribute(Handler.OUTPUT_ATTRIBUTE));
assertEquals("handler: test.load.myhandler2: bad pattern",
"-> %m%n", h.getAttribute(Handler.PATTERN_ATTRIBUTE));
assertEquals("handler: test.load.myhandler2: bad file number",
"2", h.getAttribute(Handler.FILE_NUMBER_ATTRIBUTE));
assertEquals("handler: test.load.myhandler2: bad max size",
"20", h.getAttribute(Handler.MAX_SIZE_ATTRIBUTE));
//------ Logger ------//
TopicalLogger l = null;
l = (TopicalLogger) lf.getLogger("test.load.bar");
assertEquals("logger: test.load.bar: bad level",