1
0

Move NoOp tests into separate directory.

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@381238 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Simon Kitching
2006-02-27 02:59:47 +00:00
parent f3a21723bc
commit 0806aa3672

View File

@@ -14,34 +14,26 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.logging; package org.apache.commons.logging.noop;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.impl.NoOpLog; import org.apache.commons.logging.impl.NoOpLog;
import org.apache.commons.logging.AbstractLogTest;
/** /**
* * Tests for NoOpLog logging adapter.
* * <p>
* * This simply applies the tests defined in AbstractLogTest to this class.
*
*
*
*/ */
public class NoOpLogTestCase extends AbstractLogTest public class NoOpLogTestCase extends AbstractLogTest
{ {
/** /**
* * Override the abstract method from the parent class so that the
* * inherited tests can access the right Log object type.
*
*/ */
public Log getLogObject() public Log getLogObject()
{ {
return (Log) new NoOpLog(this.getClass().getName()); return (Log) new NoOpLog(this.getClass().getName());
} }
public static void main(String[] args)
{
String[] testCaseName = { NoOpLogTestCase.class.getName() };
junit.textui.TestRunner.main(testCaseName);
}
} }