You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by sk...@apache.org on 2006/02/27 03:59:14 UTC

svn commit: r381237 - /jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/logkit/StandardTestCase.java

Author: skitching
Date: Sun Feb 26 18:59:11 2006
New Revision: 381237

URL: http://svn.apache.org/viewcvs?rev=381237&view=rev
Log:
Execute tests from base AbstractLogTest class in addition to existing tests.

Modified:
    jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/logkit/StandardTestCase.java

Modified: jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/logkit/StandardTestCase.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/logkit/StandardTestCase.java?rev=381237&r1=381236&r2=381237&view=diff
==============================================================================
--- jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/logkit/StandardTestCase.java (original)
+++ jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/logkit/StandardTestCase.java Sun Feb 26 18:59:11 2006
@@ -30,12 +30,15 @@
 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
@@ -96,6 +99,15 @@
     }
 
     // ----------------------------------------------------------- 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() {



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org