unit test code
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138920 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
52
src/test/org/apache/commons/logging/SimpleLogTest.java
Normal file
52
src/test/org/apache/commons/logging/SimpleLogTest.java
Normal file
@@ -0,0 +1,52 @@
|
||||
package org.apache.commons.logging;
|
||||
|
||||
import org.apache.commons.logging.impl.SimpleLog;
|
||||
import junit.framework.*;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
public class SimpleLogTest extends AbstractLogTest
|
||||
{
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @param testName
|
||||
*
|
||||
*/
|
||||
public SimpleLogTest(String testName)
|
||||
{
|
||||
super(testName);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
public Log getLogObject()
|
||||
{
|
||||
return (Log) new SimpleLog(this.getClass().getName());
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
String[] testCaseName = { SimpleLogTest.class.getName() };
|
||||
junit.textui.TestRunner.main(testCaseName);
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
TestSuite suite = new TestSuite();
|
||||
|
||||
suite.addTestSuite(SimpleLogTest.class);
|
||||
|
||||
return suite;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user