Examples of Jdk14Logger


Examples of org.codehaus.dna.impl.Jdk14Logger

        throws Exception
    {
        final Level level = Level.OFF;
        final String message = "Meep!";

        final Jdk14Logger logger = createLogger( level );
        logger.warn( message );
        checkLogger( false, null, null, null );
    }
View Full Code Here

Examples of org.codehaus.dna.impl.Jdk14Logger

        final Level type = Level.WARNING;
        final String message = "Meep!";
        final Throwable throwable = new Throwable();
        final boolean output = true;

        final Jdk14Logger logger = createLogger( level );
        logger.warn( message, throwable );
        checkLogger( output, message, throwable, type );
    }
View Full Code Here

Examples of org.codehaus.dna.impl.Jdk14Logger

    {
        final Level level = Level.OFF;
        final String message = "Meep!";
        final Throwable throwable = new Throwable();

        final Jdk14Logger logger = createLogger( level );
        logger.warn( message, throwable );
        checkLogger( false, null, null, null );
    }
View Full Code Here

Examples of org.codehaus.dna.impl.Jdk14Logger

        final Level type = Level.SEVERE;
        final String message = "Meep!";
        final Throwable throwable = null;
        final boolean output = true;

        final Jdk14Logger logger = createLogger( level );
        logger.error( message );
        checkLogger( output, message, throwable, type );
    }
View Full Code Here

Examples of org.codehaus.dna.impl.Jdk14Logger

        final Level type = Level.SEVERE;
        final String message = "Meep!";
        final Throwable throwable = new Throwable();
        final boolean output = true;

        final Jdk14Logger logger = createLogger( level );
        logger.error( message, throwable );
        checkLogger( output, message, throwable, type );
    }
View Full Code Here

Examples of org.codehaus.dna.impl.Jdk14Logger

    }

    public void testConsoleLevelComparisonWithDebugEnabled()
        throws Exception
    {
        final Jdk14Logger logger = createLogger( Level.FINEST );

        assertEquals( "logger.isTraceEnabled()", true, logger.isTraceEnabled() );
        assertEquals( "logger.isDebugEnabled()", true, logger.isDebugEnabled() );
        assertEquals( "logger.isInfoEnabled()", true, logger.isInfoEnabled() );
        assertEquals( "logger.isWarnEnabled()", true, logger.isWarnEnabled() );
        assertEquals( "logger.isErrorEnabled()", true, logger.isErrorEnabled() );
    }
View Full Code Here

Examples of org.codehaus.dna.impl.Jdk14Logger

    }

    public void testConsoleLevelComparisonWithInfoEnabled()
        throws Exception
    {
        final Jdk14Logger logger = createLogger( Level.INFO );

        assertEquals( "logger.isTraceEnabled()", false, logger.isTraceEnabled() );
        assertEquals( "logger.isDebugEnabled()", false, logger.isDebugEnabled() );
        assertEquals( "logger.isInfoEnabled()", true, logger.isInfoEnabled() );
        assertEquals( "logger.isWarnEnabled()", true, logger.isWarnEnabled() );
        assertEquals( "logger.isErrorEnabled()", true, logger.isErrorEnabled() );
    }
View Full Code Here

Examples of org.codehaus.dna.impl.Jdk14Logger

    }

    public void testConsoleLevelComparisonWithWarnEnabled()
        throws Exception
    {
        final Jdk14Logger logger = createLogger( Level.WARNING );

        assertEquals( "logger.isTraceEnabled()", false, logger.isTraceEnabled() );
        assertEquals( "logger.isDebugEnabled()", false, logger.isDebugEnabled() );
        assertEquals( "logger.isInfoEnabled()", false, logger.isInfoEnabled() );
        assertEquals( "logger.isWarnEnabled()", true, logger.isWarnEnabled() );
        assertEquals( "logger.isErrorEnabled()", true, logger.isErrorEnabled() );
    }
View Full Code Here

Examples of org.codehaus.dna.impl.Jdk14Logger

    }

    public void testConsoleLevelComparisonWithErrorEnabled()
        throws Exception
    {
        final Jdk14Logger logger = createLogger( Level.SEVERE );

        assertEquals( "logger.isTraceEnabled()", false, logger.isTraceEnabled() );
        assertEquals( "logger.isDebugEnabled()", false, logger.isDebugEnabled() );
        assertEquals( "logger.isInfoEnabled()", false, logger.isInfoEnabled() );
        assertEquals( "logger.isWarnEnabled()", false, logger.isWarnEnabled() );
        assertEquals( "logger.isErrorEnabled()", true, logger.isErrorEnabled() );
    }
View Full Code Here

Examples of org.codehaus.dna.impl.Jdk14Logger

    }

    private Jdk14Logger createLogger( final Level priority )
    {
        m_mockLogger = new MockLogger( priority );
        return new Jdk14Logger( m_mockLogger );
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.