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 2005/07/08 09:02:23 UTC
svn commit: r209711 -
/jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/
Author: skitching
Date: Fri Jul 8 00:02:20 2005
New Revision: 209711
URL: http://svn.apache.org/viewcvs?rev=209711&view=rev
Log:
* renamed test cases from Test.java to TestCase.java for consistency.
* removed unneeded suite and constructor methods.
Added:
jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/BasicOperationsTestCase.java
- copied, changed from r190564, jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/BasicOperationsTest.java
jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/LoadTestCase.java
- copied, changed from r209201, jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/LoadTest.java
jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/NoOpLogTestCase.java
- copied, changed from r209407, jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/NoOpLogTest.java
jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/NullClassLoaderTestCase.java
- copied, changed from r190565, jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/NullClassLoaderTest.java
jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/SimpleLogTestCase.java
- copied, changed from r209407, jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/SimpleLogTest.java
Removed:
jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/BasicOperationsTest.java
jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/LoadTest.java
jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/NoOpLogTest.java
jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/NullClassLoaderTest.java
jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/SimpleLogTest.java
jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/TestAll.java
jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/Wrapper.java
Modified:
jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/UserClass.java
Copied: jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/BasicOperationsTestCase.java (from r190564, jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/BasicOperationsTest.java)
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/BasicOperationsTestCase.java?p2=jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/BasicOperationsTestCase.java&p1=jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/BasicOperationsTest.java&r1=190564&r2=209711&rev=209711&view=diff
==============================================================================
--- jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/BasicOperationsTest.java (original)
+++ jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/BasicOperationsTestCase.java Fri Jul 8 00:02:20 2005
@@ -1,5 +1,5 @@
/*
- * Copyright 2004 The Apache Software Foundation.
+ * Copyright 2004,2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -25,22 +25,17 @@
* This is the minimum requirement for any well behaved logger
* and so this test should be run for each kind.
*/
-public class BasicOperationsTest extends TestCase
+public class BasicOperationsTestCase extends TestCase
{
- public BasicOperationsTest(String testName)
- {
- super(testName);
- }
-
public void testIsEnabledClassLog()
{
- Log log = LogFactory.getLog(BasicOperationsTest.class);
+ Log log = LogFactory.getLog(BasicOperationsTestCase.class);
executeIsEnabledTest(log);
}
public void testIsEnabledNamedLog()
{
- Log log = LogFactory.getLog(BasicOperationsTest.class.getName());
+ Log log = LogFactory.getLog(BasicOperationsTestCase.class.getName());
executeIsEnabledTest(log);
}
@@ -65,13 +60,13 @@
public void testMessageWithoutExceptionClassLog()
{
- Log log = LogFactory.getLog(BasicOperationsTest.class);
+ Log log = LogFactory.getLog(BasicOperationsTestCase.class);
executeMessageWithoutExceptionTest(log);
}
public void testMessageWithoutExceptionNamedLog()
{
- Log log = LogFactory.getLog(BasicOperationsTest.class.getName());
+ Log log = LogFactory.getLog(BasicOperationsTestCase.class.getName());
executeMessageWithoutExceptionTest(log);
}
@@ -95,13 +90,13 @@
public void testMessageWithExceptionClassLog()
{
- Log log = LogFactory.getLog(BasicOperationsTest.class);
+ Log log = LogFactory.getLog(BasicOperationsTestCase.class);
executeMessageWithExceptionTest(log);
}
public void testMessageWithExceptionNamedLog()
{
- Log log = LogFactory.getLog(BasicOperationsTest.class.getName());
+ Log log = LogFactory.getLog(BasicOperationsTestCase.class.getName());
executeMessageWithExceptionTest(log);
}
Copied: jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/LoadTestCase.java (from r209201, jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/LoadTest.java)
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/LoadTestCase.java?p2=jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/LoadTestCase.java&p1=jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/LoadTest.java&r1=209201&r2=209711&rev=209711&view=diff
==============================================================================
--- jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/LoadTest.java (original)
+++ jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/LoadTestCase.java Fri Jul 8 00:02:20 2005
@@ -1,5 +1,5 @@
/*
- * Copyright 2001-2004 The Apache Software Foundation.
+ * Copyright 2001-2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -24,7 +24,7 @@
* @author baliuka
* @version $Id$
*/
-public class LoadTest extends TestCase{
+public class LoadTestCase extends TestCase{
//TODO: need some way to add service provider packages
static private String LOG_PCKG[] = {"org.apache.commons.logging",
"org.apache.commons.logging.impl"};
@@ -213,26 +213,9 @@
}
-
- /** Creates a new instance of LoadTest */
- public LoadTest(String testName) {
- super(testName);
- }
-
-
-
-
public static void main(String[] args){
- String[] testCaseName = { LoadTest.class.getName() };
+ String[] testCaseName = { LoadTestCase.class.getName() };
junit.textui.TestRunner.main(testCaseName);
- }
-
- public static Test suite() {
- TestSuite suite = new TestSuite();
-
- suite.addTestSuite(LoadTest.class);
-
- return suite;
}
public void setUp() {
Copied: jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/NoOpLogTestCase.java (from r209407, jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/NoOpLogTest.java)
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/NoOpLogTestCase.java?p2=jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/NoOpLogTestCase.java&p1=jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/NoOpLogTest.java&r1=209407&r2=209711&rev=209711&view=diff
==============================================================================
--- jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/NoOpLogTest.java (original)
+++ jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/NoOpLogTestCase.java Fri Jul 8 00:02:20 2005
@@ -1,5 +1,5 @@
/*
- * Copyright 2001-2004 The Apache Software Foundation.
+ * Copyright 2001-2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -27,7 +27,7 @@
*
*
*/
-public class NoOpLogTest extends AbstractLogTest
+public class NoOpLogTestCase extends AbstractLogTest
{
/**
@@ -42,16 +42,7 @@
public static void main(String[] args)
{
- String[] testCaseName = { NoOpLogTest.class.getName() };
+ String[] testCaseName = { NoOpLogTestCase.class.getName() };
junit.textui.TestRunner.main(testCaseName);
}
-
- public static Test suite() {
- TestSuite suite = new TestSuite();
-
- suite.addTestSuite(NoOpLogTest.class);
-
- return suite;
- }
-
}
Copied: jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/NullClassLoaderTestCase.java (from r190565, jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/NullClassLoaderTest.java)
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/NullClassLoaderTestCase.java?p2=jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/NullClassLoaderTestCase.java&p1=jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/NullClassLoaderTest.java&r1=190565&r2=209711&rev=209711&view=diff
==============================================================================
--- jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/NullClassLoaderTest.java (original)
+++ jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/NullClassLoaderTestCase.java Fri Jul 8 00:02:20 2005
@@ -1,5 +1,5 @@
/*
- * Copyright 2001-2004 The Apache Software Foundation.
+ * Copyright 2001-2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -25,7 +25,7 @@
* JCL is deployed via the bootclassloader - something that could be done when
* using java in embedded systems.
*/
-public class NullClassLoaderTest extends TestCase{
+public class NullClassLoaderTestCase extends TestCase {
//---------------------- Main ---------------------------------
@@ -33,25 +33,10 @@
* Main method so this test case can be run direct from the command line.
*/
public static void main(String[] args){
- String[] testCaseName = { NullClassLoaderTest.class.getName() };
+ String[] testCaseName = { NullClassLoaderTestCase.class.getName() };
junit.textui.TestRunner.main(testCaseName);
}
- //---------------------- Constructors ---------------------------------
-
- /** Creates a new instance of LoadTest */
- public NullClassLoaderTest(String testName) {
- super(testName);
- }
-
- //---------------------- JUnit methods ---------------------------------
-
- public static Test suite() {
- TestSuite suite = new TestSuite();
- suite.addTestSuite(NullClassLoaderTest.class);
- return suite;
- }
-
//---------------------- unit tests ---------------------------------
/**
Copied: jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/SimpleLogTestCase.java (from r209407, jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/SimpleLogTest.java)
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/SimpleLogTestCase.java?p2=jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/SimpleLogTestCase.java&p1=jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/SimpleLogTest.java&r1=209407&r2=209711&rev=209711&view=diff
==============================================================================
--- jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/SimpleLogTest.java (original)
+++ jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/SimpleLogTestCase.java Fri Jul 8 00:02:20 2005
@@ -1,5 +1,5 @@
/*
- * Copyright 2001-2004 The Apache Software Foundation.
+ * Copyright 2001-2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -27,30 +27,20 @@
*
*
*/
-public class SimpleLogTest extends AbstractLogTest
+public class SimpleLogTestCase extends AbstractLogTest
{
/**
*
*
*
*/
- public Log getLogObject()
- {
- return (Log) new SimpleLog(this.getClass().getName());
- }
+ public Log getLogObject()
+ {
+ return (Log) new SimpleLog(this.getClass().getName());
+ }
- public static void main(String[] args)
- {
- String[] testCaseName = { SimpleLogTest.class.getName() };
+ public static void main(String[] args) {
+ String[] testCaseName = { SimpleLogTestCase.class.getName() };
junit.textui.TestRunner.main(testCaseName);
}
-
- public static Test suite() {
- TestSuite suite = new TestSuite();
-
- suite.addTestSuite(SimpleLogTest.class);
-
- return suite;
- }
-
}
Modified: jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/UserClass.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/UserClass.java?rev=209711&r1=209710&r2=209711&view=diff
==============================================================================
--- jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/UserClass.java (original)
+++ jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/UserClass.java Fri Jul 8 00:02:20 2005
@@ -36,7 +36,7 @@
}
public UserClass() {
- Log log = LogFactory.getLog(LoadTest.class);
+ Log log = LogFactory.getLog(LoadTestCase.class);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org