org.codehaus.plexus.logging
Class AbstractLoggerManagerTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.codehaus.plexus.PlexusTestCase
              extended by org.codehaus.plexus.logging.AbstractLoggerManagerTest
All Implemented Interfaces:
junit.framework.Test

public abstract class AbstractLoggerManagerTest
extends org.codehaus.plexus.PlexusTestCase

Abtract base class for testing implementations of the LoggerManager and Logger interfaces.

Version:
$Id: AbstractLoggerManagerTest.java 1307 2004-11-15 20:17:37Z michal $
Author:
Mark H. Wilkinson, Trygve Laugstøl

Field Summary
 
Fields inherited from class org.codehaus.plexus.PlexusTestCase
basedir, container
 
Constructor Summary
AbstractLoggerManagerTest()
           
 
Method Summary
protected abstract  org.codehaus.plexus.logging.LoggerManager createLoggerManager()
           
 void setUp()
          Creates the ${plexus.home}/logs directory.
 void testActiveLoggerCount()
          There is only one logger instance pr component even if looked up more that once.
 void testDebugLevelConfiguration()
           
 void testErrorLevelConfiguration()
           
 void testFatalLevelConfiguration()
           
 void testInfoLevelConfiguration()
           
 void testSetThreshold()
           
 void testWarnLevelConfiguration()
           
 
Methods inherited from class org.codehaus.plexus.PlexusTestCase
createContainerInstance, customizeContext, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getContainer, getCustomConfiguration, getResourceAsStream, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, release, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractLoggerManagerTest

public AbstractLoggerManagerTest()
Method Detail

createLoggerManager

protected abstract org.codehaus.plexus.logging.LoggerManager createLoggerManager()
                                                                          throws java.lang.Exception
Throws:
java.lang.Exception

setUp

public final void setUp()
                 throws java.lang.Exception
Creates the ${plexus.home}/logs directory.

Overrides:
setUp in class org.codehaus.plexus.PlexusTestCase
Throws:
java.lang.Exception

testSetThreshold

public void testSetThreshold()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testActiveLoggerCount

public void testActiveLoggerCount()
                           throws java.lang.Exception
There is only one logger instance pr component even if looked up more that once.

Throws:
java.lang.Exception

testDebugLevelConfiguration

public void testDebugLevelConfiguration()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testInfoLevelConfiguration

public void testInfoLevelConfiguration()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testWarnLevelConfiguration

public void testWarnLevelConfiguration()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testErrorLevelConfiguration

public void testErrorLevelConfiguration()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testFatalLevelConfiguration

public void testFatalLevelConfiguration()
                                 throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © {inceptionYear}-2008 null. All Rights Reserved.