Code example for LogManager

Methods: readConfiguration

    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);
Connect your IDE to all the code out there  Get Codota for Java