Package org.codehaus.dna.impl

Examples of org.codehaus.dna.impl.Log4JLogger


    public void testLog4JLoggerEmptyCtor()
        throws Exception
    {
        try
        {
            new Log4JLogger( null );
        }
        catch( NullPointerException npe )
        {
            assertEquals( "npe.getMessage()", "logger", npe.getMessage() );
        }
View Full Code Here


    public void testLog4JLoggerGetChildLogger()
        throws Exception
    {
        final MockAppender target = new MockAppender();
        final Log4JLogger logger = createLogger( target, Level.DEBUG );

        assertNotSame( "logger.getChildLogger == logger",
                       logger,
                       logger.getChildLogger( "whatever" ) );
    }
View Full Code Here

        final String message = "Meep!";
        final Throwable throwable = null;
        final boolean output = true;

        final MockAppender target = new MockAppender();
        final Log4JLogger logger = createLogger( target, level );
        logger.trace( message );
        checkLogger( target, output, message, throwable, type );
    }
View Full Code Here

    {
        final Level level = Level.ERROR;
        final String message = "Meep!";

        final MockAppender target = new MockAppender();
        final Log4JLogger logger = createLogger( target, level );
        logger.trace( message );
        checkLogger( target, false, null, null, null );
    }
View Full Code Here

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

        final MockAppender target = new MockAppender();
        final Log4JLogger logger = createLogger( target, level );

        logger.trace( message, throwable );
        checkLogger( target, output, message, throwable, type );
    }
View Full Code Here

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

        final MockAppender target = new MockAppender();
        final Log4JLogger logger = createLogger( target, level );

        logger.trace( message, throwable );
        checkLogger( target, false, null, null, null );
    }
View Full Code Here

        final String message = "Meep!";
        final Throwable throwable = null;
        final boolean output = true;

        final MockAppender target = new MockAppender();
        final Log4JLogger logger = createLogger( target, level );
        logger.debug( message );
        checkLogger( target, output, message, throwable, type );
    }
View Full Code Here

    {
        final Level level = Level.ERROR;
        final String message = "Meep!";

        final MockAppender target = new MockAppender();
        final Log4JLogger logger = createLogger( target, level );
        logger.debug( message );
        checkLogger( target, false, null, null, null );
    }
View Full Code Here

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

        final MockAppender target = new MockAppender();
        final Log4JLogger logger = createLogger( target, level );
        logger.debug( message, throwable );
        checkLogger( target, output, message, throwable, type );
    }
View Full Code Here

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

        final MockAppender target = new MockAppender();
        final Log4JLogger logger = createLogger( target, level );
        logger.debug( message, throwable );
        checkLogger( target, false, null, null, null );
    }
View Full Code Here

TOP

Related Classes of org.codehaus.dna.impl.Log4JLogger

Copyright © 2018 www.massapicom. 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.