}
}
public static class TestValidConfigFile {
public static void main(String[] args) {
LogManager manager = LogManager.getLogManager();
Logger root = manager.getLogger("");
checkPropertyNull(manager);
assertEquals(2, root.getHandlers().length);
assertEquals(root.getHandlers()[0].getLevel(), Level.OFF);
assertEquals(Level.ALL, root.getLevel());
try {
manager.readConfiguration();
} catch (Exception e) {
e.printStackTrace();
}
checkPropertyNull(manager);
assertEquals(root.getHandlers()[0].getLevel(), Level.OFF);
assertEquals(2, root.getHandlers().length);
assertEquals(Level.ALL, root.getLevel());
manager.reset();
checkPropertyNull(manager);
assertEquals(0, root.getHandlers().length);
assertEquals(Level.INFO, root.getLevel());
try {
manager.readConfiguration();
} catch (Exception e) {
e.printStackTrace();
}
}