From 0806aa367264c4369dc4339960a14efa3bd288c4 Mon Sep 17 00:00:00 2001 From: Simon Kitching Date: Mon, 27 Feb 2006 02:59:47 +0000 Subject: [PATCH] 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 --- .../logging/{ => noop}/NoOpLogTestCase.java | 24 +++++++------------ 1 file changed, 8 insertions(+), 16 deletions(-) rename src/test/org/apache/commons/logging/{ => noop}/NoOpLogTestCase.java (68%) diff --git a/src/test/org/apache/commons/logging/NoOpLogTestCase.java b/src/test/org/apache/commons/logging/noop/NoOpLogTestCase.java similarity index 68% rename from src/test/org/apache/commons/logging/NoOpLogTestCase.java rename to src/test/org/apache/commons/logging/noop/NoOpLogTestCase.java index 5a32271..ed1a52b 100644 --- a/src/test/org/apache/commons/logging/NoOpLogTestCase.java +++ b/src/test/org/apache/commons/logging/noop/NoOpLogTestCase.java @@ -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. + *

+ * 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); - } }