Code example for LogManager

Methods: readConfiguration

0
			IOException { 
		props.clear();
		props.put("java.util.logging.MemoryHandler.target", baseClassName
				+ "$MockHandler"); 
 
		manager.readConfiguration(EnvironmentHelper
				.PropertiesToInputStream(props));
		handler = new MemoryHandler();
		assertNull(handler.getFilter());
		assertTrue(handler.getFormatter() instanceof SimpleFormatter);
		assertNull(handler.getEncoding());
		assertNotNull(handler.getErrorManager());
		assertEquals(handler.getLevel(), Level.ALL);
		assertEquals(handler.getPushLevel(), Level.SEVERE);
	} 
 
	/* 
	 * Class under test for void MemoryHandler(Handler, int, Level) 
	 */ 
	public void testMemoryHandlerHandlerintLevel() { 
Contextual code suggestions in your IDE  Get Codota for Java