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:50 UTC

svn commit: r381238 - in /jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging: NoOpLogTestCase.java noop/NoOpLogTestCase.java

Author: skitching
Date: Sun Feb 26 18:59:47 2006
New Revision: 381238

URL: http://svn.apache.org/viewcvs?rev=381238&view=rev
Log:
Move NoOp tests into separate directory.

Added:
    jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/noop/NoOpLogTestCase.java
      - copied, changed from r379693, jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/NoOpLogTestCase.java
Removed:
    jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/NoOpLogTestCase.java

Copied: jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/noop/NoOpLogTestCase.java (from r379693, jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/NoOpLogTestCase.java)
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/noop/NoOpLogTestCase.java?p2=jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/noop/NoOpLogTestCase.java&p1=jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/NoOpLogTestCase.java&r1=379693&r2=381238&rev=381238&view=diff
==============================================================================
--- jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/NoOpLogTestCase.java (original)
+++ jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/noop/NoOpLogTestCase.java Sun Feb 26 18:59:47 2006
@@ -14,34 +14,26 @@
  * 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.AbstractLogTest;
 
 /**
- * 
- *
- * 
- * 
- * 
- * 
+ * Tests for NoOpLog logging adapter.
+ * <p>
+ * This simply applies the tests defined in AbstractLogTest to this class.
  */
 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()
 	{
 		return (Log) new NoOpLog(this.getClass().getName());
-	}
-
-	public static void main(String[] args)
-	{
-        String[] testCaseName = { NoOpLogTestCase.class.getName() };
-        junit.textui.TestRunner.main(testCaseName);	
 	}
 }



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