From f3a21723bcd3f2d776291515f483dd42a550d98f Mon Sep 17 00:00:00 2001 From: Simon Kitching Date: Mon, 27 Feb 2006 02:59:11 +0000 Subject: [PATCH] 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 --- .../commons/logging/logkit/StandardTestCase.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/test/org/apache/commons/logging/logkit/StandardTestCase.java b/src/test/org/apache/commons/logging/logkit/StandardTestCase.java index 9918003..1b64f2c 100644 --- a/src/test/org/apache/commons/logging/logkit/StandardTestCase.java +++ b/src/test/org/apache/commons/logging/logkit/StandardTestCase.java @@ -30,12 +30,15 @@ import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.PathableClassLoader; import org.apache.commons.logging.PathableTestSuite; 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. */ -public class StandardTestCase extends TestCase { +public class StandardTestCase extends AbstractLogTest { // ----------------------------------------------------- Instance Variables @@ -97,6 +100,15 @@ public class StandardTestCase extends TestCase { // ----------------------------------------------------------- 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 public void testPristineFactory() {