1
0

- Added new LogTest that exercises factory

- log statements now show implementation class
   (helpfull for visual verification that expected logger was found).


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138925 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Richard A. Sitze
2002-10-19 17:14:26 +00:00
parent a3566a19b7
commit dfcf03ab41
3 changed files with 78 additions and 17 deletions

View File

@@ -0,0 +1,55 @@
package org.apache.commons.logging;
import org.apache.commons.logging.impl.SimpleLog;
import junit.framework.*;
/**
*
*
*
*
*
*
*/
public class LogTest extends AbstractLogTest
{
/**
*
*
* @param testName
*
*/
public LogTest(String testName)
{
super(testName);
}
/**
*
*
*
*/
public Log getLogObject()
{
/**
* Pickup whatever is found/configured!
*/
return LogFactory.getLog(this.getClass().getName());
}
public static void main(String[] args)
{
String[] testCaseName = { LogTest.class.getName() };
junit.textui.TestRunner.main(testCaseName);
}
public static Test suite() {
TestSuite suite = new TestSuite();
suite.addTestSuite(LogTest.class);
return suite;
}
}