Execute tests from base AbstractLogTest class in addition to existing tests.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@381237 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -30,12 +30,15 @@ import org.apache.commons.logging.LogFactory;
|
|||||||
import org.apache.commons.logging.PathableClassLoader;
|
import org.apache.commons.logging.PathableClassLoader;
|
||||||
import org.apache.commons.logging.PathableTestSuite;
|
import org.apache.commons.logging.PathableTestSuite;
|
||||||
import org.apache.commons.logging.impl.LogKitLogger;
|
import org.apache.commons.logging.impl.LogKitLogger;
|
||||||
|
import org.apache.commons.logging.impl.NoOpLog;
|
||||||
|
|
||||||
|
import org.apache.commons.logging.AbstractLogTest;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Basic tests for Avalon LogKit logger adapter.
|
* Basic tests for Avalon LogKit logger adapter.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class StandardTestCase extends TestCase {
|
public class StandardTestCase extends AbstractLogTest {
|
||||||
|
|
||||||
|
|
||||||
// ----------------------------------------------------- Instance Variables
|
// ----------------------------------------------------- Instance Variables
|
||||||
@@ -97,6 +100,15 @@ public class StandardTestCase extends TestCase {
|
|||||||
|
|
||||||
// ----------------------------------------------------------- Test Methods
|
// ----------------------------------------------------------- Test Methods
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Override the abstract method from the parent class so that the
|
||||||
|
* inherited tests can access the right Log object type.
|
||||||
|
*/
|
||||||
|
public Log getLogObject()
|
||||||
|
{
|
||||||
|
return new LogKitLogger(this.getClass().getName());
|
||||||
|
}
|
||||||
|
|
||||||
// Test pristine LogFactory instance
|
// Test pristine LogFactory instance
|
||||||
public void testPristineFactory() {
|
public void testPristineFactory() {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user