diff --git a/src/test/org/apache/commons/logging/AbstractLogTest.java b/src/test/org/apache/commons/logging/AbstractLogTest.java index 2d7a15f..706e5b0 100644 --- a/src/test/org/apache/commons/logging/AbstractLogTest.java +++ b/src/test/org/apache/commons/logging/AbstractLogTest.java @@ -5,17 +5,15 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - - + */ package org.apache.commons.logging; import junit.framework.TestCase; @@ -25,7 +23,7 @@ import junit.framework.TestCase; * Generic tests that can be applied to any log adapter by * subclassing this class and defining method getLogObject * appropriately. - * + * * @author Sean C. Sullivan * @version $Revision$ */ @@ -92,5 +90,5 @@ public abstract class AbstractLogTest extends TestCase { log.warn(log.getClass().getName() + ": warn statement"); log.warn(log.getClass().getName() + ": warn statement w/ null exception", new RuntimeException()); - } + } } diff --git a/src/test/org/apache/commons/logging/AltHashtable.java b/src/test/org/apache/commons/logging/AltHashtable.java index 7ab7d47..ebcbc48 100644 --- a/src/test/org/apache/commons/logging/AltHashtable.java +++ b/src/test/org/apache/commons/logging/AltHashtable.java @@ -5,15 +5,15 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ + */ package org.apache.commons.logging; @@ -23,7 +23,7 @@ public class AltHashtable extends Hashtable { public static Object lastKey; public static Object lastValue; - + public Object put(Object key, Object value) { lastKey = key; lastValue = value; diff --git a/src/test/org/apache/commons/logging/AltHashtableTestCase.java b/src/test/org/apache/commons/logging/AltHashtableTestCase.java index b1a7c6f..c70d884 100644 --- a/src/test/org/apache/commons/logging/AltHashtableTestCase.java +++ b/src/test/org/apache/commons/logging/AltHashtableTestCase.java @@ -5,15 +5,15 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ + */ package org.apache.commons.logging; @@ -24,8 +24,6 @@ import junit.framework.TestCase; * Test the ability to force the LogFactory class to use some * arbitrary Hashtable implementation to store its mapping from * context-classloader -> LogFactory object. - *
- * This is done by */ public class AltHashtableTestCase extends TestCase { @@ -47,20 +45,20 @@ public class AltHashtableTestCase extends TestCase { *
* This method ensures that the appropriate system property is defined * to force the LogFactory class to use the AltHashtable class as its - * Hashtable implementation for storing factories in. + * Hashtable implementation for storing factories in. *
* This does make the assumption that whatever JVM we are running in * doesn't initialise classes until they are actually referenced (ie the * LogFactory class hasn't been initialised before this method is called). * This is true of all JVMs I know of; and if it isn't then this test will - * fail and someone will tell us. + * fail and someone will tell us. */ public void setUp() { System.setProperty( "org.apache.commons.logging.LogFactory.HashtableImpl", AltHashtable.class.getName()); } - + /** * Verify that initialising the LogFactory class will cause it * to instantiate an object of type specified in system property @@ -75,7 +73,7 @@ public class AltHashtableTestCase extends TestCase { // doesn't change the effectiveness of this test. assertTrue(LogFactory.factories instanceof AltHashtable); } - + /** * Verify that when LogFactory sees a context-classloader for the * first time that it creates a new entry in the LogFactory.factories @@ -86,7 +84,7 @@ public class AltHashtableTestCase extends TestCase { public void testPutCalled() throws Exception { AltHashtable.lastKey = null; AltHashtable.lastValue = null; - + LogFactory.getLog(AltHashtableTestCase.class); ClassLoader contextLoader = Thread.currentThread().getContextClassLoader(); assertEquals(contextLoader, AltHashtable.lastKey); diff --git a/src/test/org/apache/commons/logging/BadHashtablePropertyTestCase.java b/src/test/org/apache/commons/logging/BadHashtablePropertyTestCase.java index 8f6ac62..eda6e3f 100644 --- a/src/test/org/apache/commons/logging/BadHashtablePropertyTestCase.java +++ b/src/test/org/apache/commons/logging/BadHashtablePropertyTestCase.java @@ -5,15 +5,15 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ + */ package org.apache.commons.logging; @@ -28,7 +28,7 @@ public class BadHashtablePropertyTestCase extends TestCase { public void testType() { assertTrue(LogFactory.factories instanceof Hashtable); } - + public void testPutCalled() throws Exception { LogFactory.getLog(BadHashtablePropertyTestCase.class); } diff --git a/src/test/org/apache/commons/logging/BasicOperationsTestCase.java b/src/test/org/apache/commons/logging/BasicOperationsTestCase.java index 02eb095..dfadab2 100644 --- a/src/test/org/apache/commons/logging/BasicOperationsTestCase.java +++ b/src/test/org/apache/commons/logging/BasicOperationsTestCase.java @@ -5,25 +5,24 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - + */ package org.apache.commons.logging; import junit.framework.TestCase; /** - * Tests the basic logging operations to ensure that they all function + * Tests the basic logging operations to ensure that they all function * without exception failure. In other words, that they do no fail by * throwing exceptions. - * This is the minimum requirement for any well behaved logger + * This is the minimum requirement for any well behaved logger * and so this test should be run for each kind. */ public class BasicOperationsTestCase extends TestCase @@ -33,13 +32,13 @@ public class BasicOperationsTestCase extends TestCase Log log = LogFactory.getLog(BasicOperationsTestCase.class); executeIsEnabledTest(log); } - + public void testIsEnabledNamedLog() { Log log = LogFactory.getLog(BasicOperationsTestCase.class.getName()); executeIsEnabledTest(log); - } - + } + public void executeIsEnabledTest(Log log) { try @@ -57,20 +56,19 @@ public class BasicOperationsTestCase extends TestCase fail("Exception thrown: " + t); } } - - + public void testMessageWithoutExceptionClassLog() { Log log = LogFactory.getLog(BasicOperationsTestCase.class); executeMessageWithoutExceptionTest(log); } - + public void testMessageWithoutExceptionNamedLog() { Log log = LogFactory.getLog(BasicOperationsTestCase.class.getName()); executeMessageWithoutExceptionTest(log); - } - + } + public void executeMessageWithoutExceptionTest(Log log) { try @@ -88,19 +86,19 @@ public class BasicOperationsTestCase extends TestCase fail("Exception thrown: " + t); } } - + public void testMessageWithExceptionClassLog() { Log log = LogFactory.getLog(BasicOperationsTestCase.class); executeMessageWithExceptionTest(log); } - + public void testMessageWithExceptionNamedLog() { Log log = LogFactory.getLog(BasicOperationsTestCase.class.getName()); executeMessageWithExceptionTest(log); - } - + } + public void executeMessageWithExceptionTest(Log log) { try diff --git a/src/test/org/apache/commons/logging/DummyException.java b/src/test/org/apache/commons/logging/DummyException.java index 446de24..2f5fdd4 100644 --- a/src/test/org/apache/commons/logging/DummyException.java +++ b/src/test/org/apache/commons/logging/DummyException.java @@ -5,16 +5,15 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - + */ package org.apache.commons.logging; /** diff --git a/src/test/org/apache/commons/logging/LoadTestCase.java b/src/test/org/apache/commons/logging/LoadTestCase.java index 9236db5..c43aeea 100644 --- a/src/test/org/apache/commons/logging/LoadTestCase.java +++ b/src/test/org/apache/commons/logging/LoadTestCase.java @@ -5,15 +5,15 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ + */ package org.apache.commons.logging; import junit.framework.TestCase; diff --git a/src/test/org/apache/commons/logging/LogTestCase.java b/src/test/org/apache/commons/logging/LogTestCase.java index 13aa1fe..0ac2a6f 100644 --- a/src/test/org/apache/commons/logging/LogTestCase.java +++ b/src/test/org/apache/commons/logging/LogTestCase.java @@ -5,16 +5,15 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - + */ package org.apache.commons.logging; diff --git a/src/test/org/apache/commons/logging/NullClassLoaderTestCase.java b/src/test/org/apache/commons/logging/NullClassLoaderTestCase.java index edcd873..0e84c1c 100644 --- a/src/test/org/apache/commons/logging/NullClassLoaderTestCase.java +++ b/src/test/org/apache/commons/logging/NullClassLoaderTestCase.java @@ -5,15 +5,15 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ + */ package org.apache.commons.logging; import junit.framework.TestCase; diff --git a/src/test/org/apache/commons/logging/PathableClassLoader.java b/src/test/org/apache/commons/logging/PathableClassLoader.java index a74cf3d..830f652 100644 --- a/src/test/org/apache/commons/logging/PathableClassLoader.java +++ b/src/test/org/apache/commons/logging/PathableClassLoader.java @@ -5,16 +5,15 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - + */ package org.apache.commons.logging; import java.io.File; diff --git a/src/test/org/apache/commons/logging/PathableTestSuite.java b/src/test/org/apache/commons/logging/PathableTestSuite.java index 4be9302..1a2ca81 100644 --- a/src/test/org/apache/commons/logging/PathableTestSuite.java +++ b/src/test/org/apache/commons/logging/PathableTestSuite.java @@ -5,16 +5,15 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - + */ package org.apache.commons.logging; import java.util.Properties; diff --git a/src/test/org/apache/commons/logging/SimpleLogTestCase.java b/src/test/org/apache/commons/logging/SimpleLogTestCase.java index 3ee9b7d..cc2fceb 100644 --- a/src/test/org/apache/commons/logging/SimpleLogTestCase.java +++ b/src/test/org/apache/commons/logging/SimpleLogTestCase.java @@ -5,16 +5,15 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - + */ package org.apache.commons.logging; import org.apache.commons.logging.impl.SimpleLog; diff --git a/src/test/org/apache/commons/logging/UserClass.java b/src/test/org/apache/commons/logging/UserClass.java index 754bf8e..9013133 100644 --- a/src/test/org/apache/commons/logging/UserClass.java +++ b/src/test/org/apache/commons/logging/UserClass.java @@ -5,23 +5,21 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - + */ package org.apache.commons.logging; import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.impl.LogFactoryImpl; public class UserClass { - /** * Set the ALLOW_FLAWED_CONTEXT feature on the LogFactoryImpl object @@ -33,11 +31,11 @@ public class UserClass { */ public static void setAllowFlawedContext(String state) { LogFactory f = LogFactory.getFactory(); - f.setAttribute(LogFactoryImpl.ALLOW_FLAWED_CONTEXT_PROPERTY, state); + f.setAttribute(LogFactoryImpl.ALLOW_FLAWED_CONTEXT_PROPERTY, state); } public UserClass() { Log log = LogFactory.getLog(LoadTestCase.class); } - + } diff --git a/src/test/org/apache/commons/logging/avalon/AvalonLoggerTestCase.java b/src/test/org/apache/commons/logging/avalon/AvalonLoggerTestCase.java index 405ae7e..732d82b 100644 --- a/src/test/org/apache/commons/logging/avalon/AvalonLoggerTestCase.java +++ b/src/test/org/apache/commons/logging/avalon/AvalonLoggerTestCase.java @@ -5,15 +5,15 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ + */ package org.apache.commons.logging.avalon; import org.apache.avalon.framework.logger.NullLogger; diff --git a/src/test/org/apache/commons/logging/config/FirstPriorityConfigTestCase.java b/src/test/org/apache/commons/logging/config/FirstPriorityConfigTestCase.java index 8700ebc..4725dcd 100644 --- a/src/test/org/apache/commons/logging/config/FirstPriorityConfigTestCase.java +++ b/src/test/org/apache/commons/logging/config/FirstPriorityConfigTestCase.java @@ -5,15 +5,15 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ + */ package org.apache.commons.logging.config; @@ -58,7 +58,7 @@ public class FirstPriorityConfigTestCase extends TestCase { dummy.useExplicitLoader("junit.", Test.class.getClassLoader()); dummy.addLogicalLib("testclasses"); dummy.addLogicalLib("commons-logging"); - + String thisClassPath = thisClass.getName().replace('.', '/') + ".class"; URL baseUrl = dummy.findResource(thisClassPath); @@ -68,7 +68,7 @@ public class FirstPriorityConfigTestCase extends TestCase { PathableClassLoader containerLoader = new PathableClassLoader(null); containerLoader.useExplicitLoader("junit.", Test.class.getClassLoader()); containerLoader.addLogicalLib("commons-logging"); - + PathableClassLoader webappLoader = new PathableClassLoader(containerLoader); webappLoader.addLogicalLib("testclasses"); @@ -77,7 +77,7 @@ public class FirstPriorityConfigTestCase extends TestCase { URL pri10URL = new URL(baseUrl, "priority10/"); webappLoader.addURL(pri10URL); - + // load the test class via webapp loader, and use the webapp loader // as the tccl loader too. Class testClass = webappLoader.loadClass(thisClass.getName()); @@ -113,7 +113,7 @@ public class FirstPriorityConfigTestCase extends TestCase { // context classloader should be thisClassLoader assertEquals(thisClassLoader, contextClassLoader); - + // lfClassLoader should be parent of this classloader assertEquals(lfClassLoader, thisClassLoader.getParent()); assertEquals(PathableClassLoader.class.getName(), diff --git a/src/test/org/apache/commons/logging/config/PriorityConfigTestCase.java b/src/test/org/apache/commons/logging/config/PriorityConfigTestCase.java index 6c7d66a..831e255 100644 --- a/src/test/org/apache/commons/logging/config/PriorityConfigTestCase.java +++ b/src/test/org/apache/commons/logging/config/PriorityConfigTestCase.java @@ -5,15 +5,15 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ + */ package org.apache.commons.logging.config; @@ -65,7 +65,7 @@ public class PriorityConfigTestCase extends TestCase { dummy.useExplicitLoader("junit.", Test.class.getClassLoader()); dummy.addLogicalLib("testclasses"); dummy.addLogicalLib("commons-logging"); - + String thisClassPath = thisClass.getName().replace('.', '/') + ".class"; URL baseUrl = dummy.findResource(thisClassPath); @@ -79,7 +79,7 @@ public class PriorityConfigTestCase extends TestCase { PathableClassLoader containerLoader = new PathableClassLoader(null); containerLoader.useExplicitLoader("junit.", Test.class.getClassLoader()); containerLoader.addLogicalLib("commons-logging"); - + URL pri10URL = new URL(baseUrl, "priority10/"); containerLoader.addURL(pri10URL); @@ -89,13 +89,13 @@ public class PriorityConfigTestCase extends TestCase { URL noPriorityURL = new URL(baseUrl, "nopriority/"); webappLoader.addURL(noPriorityURL); - + URL pri20URL = new URL(baseUrl, "priority20/"); webappLoader.addURL(pri20URL); - + URL pri20aURL = new URL(baseUrl, "priority20a/"); webappLoader.addURL(pri20aURL); - + // load the test class via webapp loader, and use the webapp loader // as the tccl loader too. Class testClass = webappLoader.loadClass(thisClass.getName()); diff --git a/src/test/org/apache/commons/logging/impl/WeakHashtableTest.java b/src/test/org/apache/commons/logging/impl/WeakHashtableTest.java index 1347254..b77ecc9 100644 --- a/src/test/org/apache/commons/logging/impl/WeakHashtableTest.java +++ b/src/test/org/apache/commons/logging/impl/WeakHashtableTest.java @@ -5,15 +5,15 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ + */ package org.apache.commons.logging.impl; @@ -53,19 +53,18 @@ public class WeakHashtableTest extends TestCase { public WeakHashtableTest(String testName) { super(testName); } - protected void setUp() throws Exception { super.setUp(); weakHashtable = new WeakHashtable(); - + keyOne = new Long(1); keyTwo = new Long(2); keyThree = new Long(3); valueOne = new Long(100); valueTwo = new Long(200); valueThree = new Long(300); - + weakHashtable.put(keyOne, valueOne); weakHashtable.put(keyTwo, valueTwo); weakHashtable.put(keyThree, valueThree); @@ -81,7 +80,7 @@ public class WeakHashtableTest extends TestCase { assertTrue(weakHashtable.contains(new Long(300))); assertFalse(weakHashtable.contains(new Long(400))); } - + /** Tests public boolean containsKey(Object key) */ public void testContainsKey() throws Exception { assertTrue(weakHashtable.containsKey(new Long(1))); @@ -90,9 +89,9 @@ public class WeakHashtableTest extends TestCase { assertFalse(weakHashtable.containsKey(new Long(100))); assertFalse(weakHashtable.containsKey(new Long(200))); assertFalse(weakHashtable.containsKey(new Long(300))); - assertFalse(weakHashtable.containsKey(new Long(400))); + assertFalse(weakHashtable.containsKey(new Long(400))); } - + /** Tests public boolean containsValue(Object value) */ public void testContainsValue() throws Exception { assertFalse(weakHashtable.containsValue(new Long(1))); @@ -101,9 +100,9 @@ public class WeakHashtableTest extends TestCase { assertTrue(weakHashtable.containsValue(new Long(100))); assertTrue(weakHashtable.containsValue(new Long(200))); assertTrue(weakHashtable.containsValue(new Long(300))); - assertFalse(weakHashtable.containsValue(new Long(400))); + assertFalse(weakHashtable.containsValue(new Long(400))); } - + /** Tests public Enumeration elements() */ public void testElements() throws Exception { ArrayList elements = new ArrayList(); @@ -115,7 +114,7 @@ public class WeakHashtableTest extends TestCase { assertTrue(elements.contains(valueTwo)); assertTrue(elements.contains(valueThree)); } - + /** Tests public Set entrySet() */ public void testEntrySet() throws Exception { Set entrySet = weakHashtable.entrySet(); @@ -133,15 +132,15 @@ public class WeakHashtableTest extends TestCase { } } } - - /** Tests public Object get(Object�key) */ + + /** Tests public Object get(Object key) */ public void testGet() throws Exception { assertEquals(valueOne, weakHashtable.get(keyOne)); assertEquals(valueTwo, weakHashtable.get(keyTwo)); assertEquals(valueThree, weakHashtable.get(keyThree)); assertNull(weakHashtable.get(new Long(50))); } - + /** Tests public Enumeration keys() */ public void testKeys() throws Exception { ArrayList keys = new ArrayList(); @@ -151,9 +150,9 @@ public class WeakHashtableTest extends TestCase { assertEquals(3, keys.size()); assertTrue(keys.contains(keyOne)); assertTrue(keys.contains(keyTwo)); - assertTrue(keys.contains(keyThree)); + assertTrue(keys.contains(keyThree)); } - + /** Tests public Set keySet() */ public void testKeySet() throws Exception { Set keySet = weakHashtable.keySet(); @@ -162,14 +161,14 @@ public class WeakHashtableTest extends TestCase { assertTrue(keySet.contains(keyTwo)); assertTrue(keySet.contains(keyThree)); } - + /** Tests public Object put(Object key, Object value) */ public void testPut() throws Exception { Long anotherKey = new Long(2004); weakHashtable.put(anotherKey, new Long(1066)); - + assertEquals(new Long(1066), weakHashtable.get(anotherKey)); - + // Test compliance with the hashtable API re nulls Exception caught = null; try { @@ -188,7 +187,7 @@ public class WeakHashtableTest extends TestCase { } assertNotNull("did not throw an exception adding a null value", caught); } - + /** Tests public void putAll(Map t) */ public void testPutAll() throws Exception { Map newValues = new HashMap(); @@ -199,19 +198,19 @@ public class WeakHashtableTest extends TestCase { Long anotherNewValue = new Long(1815); newValues.put(anotherNewKey, anotherNewValue); weakHashtable.putAll(newValues); - + assertEquals(5, weakHashtable.size()); assertEquals(newValue, weakHashtable.get(newKey)); assertEquals(anotherNewValue, weakHashtable.get(anotherNewKey)); } - - /** Tests public Object remove(Object�key) */ + + /** Tests public Object remove(Object key) */ public void testRemove() throws Exception { weakHashtable.remove(keyOne); assertEquals(2, weakHashtable.size()); assertNull(weakHashtable.get(keyOne)); } - + /** Tests public Collection values() */ public void testValues() throws Exception { Collection values = weakHashtable.values(); @@ -220,7 +219,7 @@ public class WeakHashtableTest extends TestCase { assertTrue(values.contains(valueTwo)); assertTrue(values.contains(valueThree)); } - + public void testRelease() throws Exception { assertNotNull(weakHashtable.get(new Long(1))); ReferenceQueue testQueue = new ReferenceQueue(); @@ -233,7 +232,7 @@ public class WeakHashtableTest extends TestCase { valueOne = null; valueTwo = null; valueThree = null; - + int iterations = 0; int bytz = 2; while(true) { @@ -241,23 +240,23 @@ public class WeakHashtableTest extends TestCase { if(iterations++ > MAX_GC_ITERATIONS){ fail("Max iterations reached before resource released."); } - + if(weakHashtable.get(new Long(1)) == null) { break; - + } else { // create garbage: byte[] b = new byte[bytz]; bytz = bytz * 2; } } - - // some JVMs seem to take a little time to put references on + + // some JVMs seem to take a little time to put references on // the reference queue once the reference has been collected // need to think about whether this is enough to justify // stepping through the collection each time... while(testQueue.poll() == null) {} - + // Test that the released objects are not taking space in the table assertEquals("underlying table not emptied", 0, weakHashtable.size()); } diff --git a/src/test/org/apache/commons/logging/jdk14/CustomConfigAPITestCase.java b/src/test/org/apache/commons/logging/jdk14/CustomConfigAPITestCase.java index 34431aa..afa04d6 100644 --- a/src/test/org/apache/commons/logging/jdk14/CustomConfigAPITestCase.java +++ b/src/test/org/apache/commons/logging/jdk14/CustomConfigAPITestCase.java @@ -5,15 +5,15 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ + */ package org.apache.commons.logging.jdk14; @@ -54,7 +54,7 @@ public class CustomConfigAPITestCase extends CustomConfigTestCase { PathableClassLoader child = new PathableClassLoader(parent); child.addLogicalLib("testclasses"); child.addLogicalLib("commons-logging"); - + Class testClass = child.loadClass(CustomConfigAPITestCase.class.getName()); return new PathableTestSuite(testClass, child); } diff --git a/src/test/org/apache/commons/logging/jdk14/CustomConfigFullTestCase.java b/src/test/org/apache/commons/logging/jdk14/CustomConfigFullTestCase.java index 310e9c6..86a6232 100644 --- a/src/test/org/apache/commons/logging/jdk14/CustomConfigFullTestCase.java +++ b/src/test/org/apache/commons/logging/jdk14/CustomConfigFullTestCase.java @@ -5,15 +5,15 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ + */ package org.apache.commons.logging.jdk14; @@ -56,7 +56,7 @@ public class CustomConfigFullTestCase extends CustomConfigTestCase { PathableClassLoader child = new PathableClassLoader(parent); child.addLogicalLib("testclasses"); - + Class testClass = child.loadClass(CustomConfigFullTestCase.class.getName()); return new PathableTestSuite(testClass, child); } diff --git a/src/test/org/apache/commons/logging/jdk14/CustomConfigTestCase.java b/src/test/org/apache/commons/logging/jdk14/CustomConfigTestCase.java index 444637f..5679c00 100644 --- a/src/test/org/apache/commons/logging/jdk14/CustomConfigTestCase.java +++ b/src/test/org/apache/commons/logging/jdk14/CustomConfigTestCase.java @@ -5,15 +5,15 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ + */ package org.apache.commons.logging.jdk14; @@ -46,8 +46,7 @@ import org.apache.commons.logging.PathableTestSuite; public class CustomConfigTestCase extends DefaultConfigTestCase { - protected static final String HANDLER_NAME - = "org.apache.commons.logging.jdk14.TestHandler"; + protected static final String HANDLER_NAME = "org.apache.commons.logging.jdk14.TestHandler"; // ----------------------------------------------------------- Constructors @@ -147,9 +146,7 @@ public class CustomConfigTestCase extends DefaultConfigTestCase { ClassLoader srcCL = CustomConfigAPITestCase.class.getClassLoader(); byte[] classData = readClass(className, srcCL); - Class[] params = new Class[] { - String.class, classData.getClass(), - Integer.TYPE, Integer.TYPE}; + Class[] params = new Class[] { String.class, classData.getClass(), Integer.TYPE, Integer.TYPE }; Method m = ClassLoader.class.getDeclaredMethod("defineClass", params); Object[] args = new Object[4]; @@ -195,7 +192,7 @@ public class CustomConfigTestCase extends DefaultConfigTestCase { cl.useExplicitLoader(HANDLER_NAME, scl); cl.addLogicalLib("commons-logging"); cl.addLogicalLib("testclasses"); - + Class testClass = cl.loadClass(CustomConfigTestCase.class.getName()); return new PathableTestSuite(testClass, cl); } @@ -358,14 +355,14 @@ public class CustomConfigTestCase extends DefaultConfigTestCase { parent = parent.getParent(); } handlers = parent.getHandlers(); - + // The CustomConfig.properties file explicitly defines one handler class - // to be attached to the root logger, so if it isn't there then + // to be attached to the root logger, so if it isn't there then // something is badly wrong... // // Yes this testing is also done in testPristineHandlers but // unfortunately: - // * we need to set up the handlers variable here, + // * we need to set up the handlers variable here, // * we don't want that to be set up incorrectly, as that can // produce weird error messages in other tests, and // * we can't rely on testPristineHandlers being the first diff --git a/src/test/org/apache/commons/logging/jdk14/DefaultConfigTestCase.java b/src/test/org/apache/commons/logging/jdk14/DefaultConfigTestCase.java index 640f51d..446d58d 100644 --- a/src/test/org/apache/commons/logging/jdk14/DefaultConfigTestCase.java +++ b/src/test/org/apache/commons/logging/jdk14/DefaultConfigTestCase.java @@ -5,15 +5,15 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ + */ package org.apache.commons.logging.jdk14; @@ -92,7 +92,7 @@ public class DefaultConfigTestCase extends TestCase { loader.useExplicitLoader("junit.", Test.class.getClassLoader()); loader.addLogicalLib("testclasses"); loader.addLogicalLib("commons-logging"); - + Class testClass = loader.loadClass(DefaultConfigTestCase.class.getName()); return new PathableTestSuite(testClass, loader); } diff --git a/src/test/org/apache/commons/logging/jdk14/TestHandler.java b/src/test/org/apache/commons/logging/jdk14/TestHandler.java index 06ecfce..eb53cee 100644 --- a/src/test/org/apache/commons/logging/jdk14/TestHandler.java +++ b/src/test/org/apache/commons/logging/jdk14/TestHandler.java @@ -5,15 +5,15 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ + */ package org.apache.commons.logging.jdk14; diff --git a/src/test/org/apache/commons/logging/log4j/StandardTests.java b/src/test/org/apache/commons/logging/log4j/StandardTests.java index 72f9cc6..2f86f74 100644 --- a/src/test/org/apache/commons/logging/log4j/StandardTests.java +++ b/src/test/org/apache/commons/logging/log4j/StandardTests.java @@ -5,15 +5,15 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ + */ package org.apache.commons.logging.log4j; @@ -51,9 +51,9 @@ public abstract class StandardTests extends TestCase { public Throwable throwable; } - // ------------------------------------------------------------------- + // ------------------------------------------------------------------- // JUnit Infrastructure Methods - // ------------------------------------------------------------------- + // ------------------------------------------------------------------- /** * Set up instance variables required by this test case. @@ -69,9 +69,9 @@ public abstract class StandardTests extends TestCase { LogFactory.releaseAll(); } - // ----------------------------------------------------------- + // ----------------------------------------------------------- // abstract methods - // ----------------------------------------------------------- + // ----------------------------------------------------------- /** * Modify log4j's setup so that all messages actually logged get redirected @@ -81,7 +81,7 @@ public abstract class StandardTests extends TestCase { * can test whether messages are getting properly filtered. */ public abstract void setUpTestAppender(List logEvents) throws Exception; - + // ----------------------------------------------------------- Test Methods /** @@ -154,9 +154,9 @@ public abstract class StandardTests extends TestCase { *
* This class has only one unit test, as we are (in part) checking behaviour in * the static block of the LogFactory class. As that class cannot be unloaded after - * being loaded into a classloader, the only workaround is to use the + * being loaded into a classloader, the only workaround is to use the * PathableClassLoader approach to ensure each test is run in its own * classloader, and use a separate testcase class for each test. */ diff --git a/src/test/org/apache/commons/logging/security/SecurityForbiddenTestCase.java b/src/test/org/apache/commons/logging/security/SecurityForbiddenTestCase.java index e6f40c6..8734337 100644 --- a/src/test/org/apache/commons/logging/security/SecurityForbiddenTestCase.java +++ b/src/test/org/apache/commons/logging/security/SecurityForbiddenTestCase.java @@ -1,22 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.apache.commons.logging.security; import java.io.PrintWriter; @@ -42,7 +40,7 @@ import org.apache.commons.logging.PathableTestSuite; *
* This class has only one unit test, as we are (in part) checking behaviour in * the static block of the LogFactory class. As that class cannot be unloaded after - * being loaded into a classloader, the only workaround is to use the + * being loaded into a classloader, the only workaround is to use the * PathableClassLoader approach to ensure each test is run in its own * classloader, and use a separate testcase class for each test. */ diff --git a/src/test/org/apache/commons/logging/servlet/BasicServletTestCase.java b/src/test/org/apache/commons/logging/servlet/BasicServletTestCase.java index 504b173..e1ecdbb 100644 --- a/src/test/org/apache/commons/logging/servlet/BasicServletTestCase.java +++ b/src/test/org/apache/commons/logging/servlet/BasicServletTestCase.java @@ -5,15 +5,15 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ + */ package org.apache.commons.logging.servlet; @@ -60,7 +60,7 @@ public class BasicServletTestCase extends TestCase { Class testClass = child.loadClass(BasicServletTestCase.class.getName()); return new PathableTestSuite(testClass, tccl); } - + /** * Test that calling ServletContextCleaner.contextDestroyed doesn't crash. * Testing anything else is rather difficult... diff --git a/src/test/org/apache/commons/logging/simple/CustomConfigTestCase.java b/src/test/org/apache/commons/logging/simple/CustomConfigTestCase.java index e192cec..f78804e 100644 --- a/src/test/org/apache/commons/logging/simple/CustomConfigTestCase.java +++ b/src/test/org/apache/commons/logging/simple/CustomConfigTestCase.java @@ -5,15 +5,15 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ + */ package org.apache.commons.logging.simple; diff --git a/src/test/org/apache/commons/logging/simple/DateTimeCustomConfigTestCase.java b/src/test/org/apache/commons/logging/simple/DateTimeCustomConfigTestCase.java index 6619024..5e72718 100644 --- a/src/test/org/apache/commons/logging/simple/DateTimeCustomConfigTestCase.java +++ b/src/test/org/apache/commons/logging/simple/DateTimeCustomConfigTestCase.java @@ -5,15 +5,15 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ + */ package org.apache.commons.logging.simple; @@ -31,7 +31,7 @@ import org.apache.commons.logging.PathableTestSuite; * Tests custom date time format configuration */ public class DateTimeCustomConfigTestCase extends CustomConfigTestCase { - + // ----------------------------------------------------------- Constructors /** @@ -53,7 +53,7 @@ public class DateTimeCustomConfigTestCase extends CustomConfigTestCase { loader.useExplicitLoader("junit.", Test.class.getClassLoader()); loader.addLogicalLib("testclasses"); loader.addLogicalLib("commons-logging"); - + Class testClass = loader.loadClass(thisClass.getName()); return new PathableTestSuite(testClass, loader); } @@ -61,12 +61,12 @@ public class DateTimeCustomConfigTestCase extends CustomConfigTestCase { /** * Set up system properties required by this unit test. Here, we - * set up the props defined in the parent class setProperties method, + * set up the props defined in the parent class setProperties method, * and add a few to configure the SimpleLog class date/time output. */ public void setProperties() { super.setProperties(); - + System.setProperty( "org.apache.commons.logging.simplelog.dateTimeFormat", "dd.mm.yyyy"); @@ -89,17 +89,17 @@ public class DateTimeCustomConfigTestCase extends CustomConfigTestCase { protected void checkDecoratedDateTime() { assertEquals("Expected date format to be set", "dd.mm.yyyy", ((DecoratedSimpleLog) log).getDateTimeFormat()); - // try the formatter Date now = new Date(); - DateFormat formatter = ((DecoratedSimpleLog) log).getDateTimeFormatter(); + DateFormat formatter = ((DecoratedSimpleLog) log).getDateTimeFormatter(); SimpleDateFormat sampleFormatter = new SimpleDateFormat("dd.mm.yyyy"); - assertEquals("Date should be formatters to pattern dd.mm.yyyy", sampleFormatter.format(now), formatter.format(now)); + assertEquals("Date should be formatters to pattern dd.mm.yyyy", + sampleFormatter.format(now), formatter.format(now)); } - + /** Hook for subclassses */ protected void checkShowDateTime() { assertTrue(((DecoratedSimpleLog) log).getShowDateTime()); } - -} \ No newline at end of file + +} diff --git a/src/test/org/apache/commons/logging/simple/DecoratedSimpleLog.java b/src/test/org/apache/commons/logging/simple/DecoratedSimpleLog.java index a780297..c68c2cb 100644 --- a/src/test/org/apache/commons/logging/simple/DecoratedSimpleLog.java +++ b/src/test/org/apache/commons/logging/simple/DecoratedSimpleLog.java @@ -5,15 +5,15 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ + */ package org.apache.commons.logging.simple; diff --git a/src/test/org/apache/commons/logging/simple/DefaultConfigTestCase.java b/src/test/org/apache/commons/logging/simple/DefaultConfigTestCase.java index a7e1858..f5bccdb 100644 --- a/src/test/org/apache/commons/logging/simple/DefaultConfigTestCase.java +++ b/src/test/org/apache/commons/logging/simple/DefaultConfigTestCase.java @@ -5,15 +5,15 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ + */ package org.apache.commons.logging.simple; diff --git a/src/test/org/apache/commons/logging/simple/LogRecord.java b/src/test/org/apache/commons/logging/simple/LogRecord.java index 3f9f51d..4f1e723 100644 --- a/src/test/org/apache/commons/logging/simple/LogRecord.java +++ b/src/test/org/apache/commons/logging/simple/LogRecord.java @@ -5,15 +5,15 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ + */ package org.apache.commons.logging.simple; diff --git a/src/test/org/apache/commons/logging/tccl/BadTCCLTestCase.java b/src/test/org/apache/commons/logging/tccl/BadTCCLTestCase.java index 00b5904..7211156 100644 --- a/src/test/org/apache/commons/logging/tccl/BadTCCLTestCase.java +++ b/src/test/org/apache/commons/logging/tccl/BadTCCLTestCase.java @@ -5,9 +5,9 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. diff --git a/src/test/org/apache/commons/logging/tccl/NullTCCLTestCase.java b/src/test/org/apache/commons/logging/tccl/NullTCCLTestCase.java index d7b5271..ae5ab4a 100644 --- a/src/test/org/apache/commons/logging/tccl/NullTCCLTestCase.java +++ b/src/test/org/apache/commons/logging/tccl/NullTCCLTestCase.java @@ -5,9 +5,9 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. diff --git a/src/test/org/apache/commons/logging/tccl/custom/MyLog.java b/src/test/org/apache/commons/logging/tccl/custom/MyLog.java index 4f79ab3..214f7b3 100644 --- a/src/test/org/apache/commons/logging/tccl/custom/MyLog.java +++ b/src/test/org/apache/commons/logging/tccl/custom/MyLog.java @@ -5,15 +5,15 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ + */ package org.apache.commons.logging.tccl.custom; import org.apache.commons.logging.Log; diff --git a/src/test/org/apache/commons/logging/tccl/custom/MyLogFactoryImpl.java b/src/test/org/apache/commons/logging/tccl/custom/MyLogFactoryImpl.java index c46bae4..63d5ac6 100644 --- a/src/test/org/apache/commons/logging/tccl/custom/MyLogFactoryImpl.java +++ b/src/test/org/apache/commons/logging/tccl/custom/MyLogFactoryImpl.java @@ -5,15 +5,15 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ + */ package org.apache.commons.logging.tccl.custom; diff --git a/src/test/org/apache/commons/logging/tccl/log/TcclDisabledTestCase.java b/src/test/org/apache/commons/logging/tccl/log/TcclDisabledTestCase.java index a12257b..152af3c 100644 --- a/src/test/org/apache/commons/logging/tccl/log/TcclDisabledTestCase.java +++ b/src/test/org/apache/commons/logging/tccl/log/TcclDisabledTestCase.java @@ -5,15 +5,15 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ + */ package org.apache.commons.logging.tccl.log; diff --git a/src/test/org/apache/commons/logging/tccl/log/TcclEnabledTestCase.java b/src/test/org/apache/commons/logging/tccl/log/TcclEnabledTestCase.java index b4fe96b..692b53e 100644 --- a/src/test/org/apache/commons/logging/tccl/log/TcclEnabledTestCase.java +++ b/src/test/org/apache/commons/logging/tccl/log/TcclEnabledTestCase.java @@ -5,15 +5,15 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ + */ package org.apache.commons.logging.tccl.log; @@ -31,7 +31,7 @@ import org.apache.commons.logging.PathableTestSuite; /** * Verify that by default the standard LogFactoryImpl class loads a - * custom Log implementation via the TCCL. + * custom Log implementation via the TCCL. */ public class TcclEnabledTestCase extends TestCase { diff --git a/src/test/org/apache/commons/logging/tccl/logfactory/TcclDisabledTestCase.java b/src/test/org/apache/commons/logging/tccl/logfactory/TcclDisabledTestCase.java index 9b00f54..fc577e3 100644 --- a/src/test/org/apache/commons/logging/tccl/logfactory/TcclDisabledTestCase.java +++ b/src/test/org/apache/commons/logging/tccl/logfactory/TcclDisabledTestCase.java @@ -5,15 +5,15 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ + */ package org.apache.commons.logging.tccl.logfactory; diff --git a/src/test/org/apache/commons/logging/tccl/logfactory/TcclEnabledTestCase.java b/src/test/org/apache/commons/logging/tccl/logfactory/TcclEnabledTestCase.java index a4f232a..58d746b 100644 --- a/src/test/org/apache/commons/logging/tccl/logfactory/TcclEnabledTestCase.java +++ b/src/test/org/apache/commons/logging/tccl/logfactory/TcclEnabledTestCase.java @@ -5,15 +5,15 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ + */ package org.apache.commons.logging.tccl.logfactory;