Code example for LogManager

Methods: readConfiguration

0
        assertTrue(lm.isCalled);
    } 
 
    public void testReadConfigurationInputStream_IOException_1parm() throws SecurityException { 
        try { 
            mockManager.readConfiguration(new MockInputStream());
            fail("should throw IOException");
        } catch (IOException expected) {
        } 
    } 
 
    public static class MockInputStream extends InputStream {
        @Override public int read() throws IOException { 
            throw new IOException();
        } 
    } 
 
    public static class MockLogger extends Logger {
        public MockLogger(String name, String rbName) {
            super(name, rbName);
        }