commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r751359 - /commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/
Date Sun, 08 Mar 2009 02:20:23 GMT
Author: bayard
Date: Sun Mar  8 02:20:22 2009
New Revision: 751359

URL: http://svn.apache.org/viewvc?rev=751359&view=rev
Log:
Fixing names of classes so they compile/run

Modified:
    commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/AbstractNestableTest.java
    commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/ExceptionTestSuite.java
    commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/ExceptionUtilsTest.java
    commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/NestableDelegateTest.java
    commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/NestableErrorTest.java
    commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/NestableExceptionTest.java
    commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/NestableRuntimeExceptionTest.java

Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/AbstractNestableTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/AbstractNestableTest.java?rev=751359&r1=751358&r2=751359&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/AbstractNestableTest.java
(original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/AbstractNestableTest.java
Sun Mar  8 02:20:22 2009
@@ -28,16 +28,16 @@
  * @author <a href="mailto:steven@caswell.name">Steven Caswell</a>
  * @version $Id$
  */
-public abstract class AbstractNestableTestCase extends TestCase
+public abstract class AbstractNestableTest extends TestCase
 {
 
     /**
      * Constructs an instance of
-     * <code>AbstractNestableTestCase</code>.
+     * <code>AbstractNestableTest</code>.
      *
      * @param name the test name
      */
-    public AbstractNestableTestCase(String name)
+    public AbstractNestableTest(String name)
     {
         super(name);
     }

Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/ExceptionTestSuite.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/ExceptionTestSuite.java?rev=751359&r1=751358&r2=751359&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/ExceptionTestSuite.java
(original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/ExceptionTestSuite.java
Sun Mar  8 02:20:22 2009
@@ -47,11 +47,11 @@
     public static Test suite()
     {
         TestSuite suite = new TestSuite();
-        suite.addTest(NestableDelegateTestCase.suite());
-        suite.addTest(NestableErrorTestCase.suite());
-        suite.addTest(NestableExceptionTestCase.suite());
-        suite.addTest(NestableRuntimeExceptionTestCase.suite());
-        suite.addTest(ExceptionUtilsTestCase.suite());
+        suite.addTest(NestableDelegateTest.suite());
+        suite.addTest(NestableErrorTest.suite());
+        suite.addTest(NestableExceptionTest.suite());
+        suite.addTest(NestableRuntimeExceptionTest.suite());
+        suite.addTest(ExceptionUtilsTest.suite());
         return suite;
     }
 }

Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/ExceptionUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/ExceptionUtilsTest.java?rev=751359&r1=751358&r2=751359&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/ExceptionUtilsTest.java
(original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/ExceptionUtilsTest.java
Sun Mar  8 02:20:22 2009
@@ -29,6 +29,7 @@
 
 import junit.framework.Assert;
 import junit.framework.Test;
+import junit.framework.TestCase;
 import junit.framework.TestSuite;
 
 import org.apache.commons.lang.SystemUtils;
@@ -58,7 +59,7 @@
  * @author <a href="mailto:ggregory@seagullsw.com">Gary Gregory</a>
  * @since 1.0
  */
-public class ExceptionUtilsTestCase extends junit.framework.TestCase {
+public class ExceptionUtilsTest extends TestCase {
     
     private NestableException nested;
     private Throwable withCause;
@@ -67,12 +68,12 @@
     private ExceptionWithCause selfCause;
     private ExceptionWithCause cyclicCause;
 
-    public ExceptionUtilsTestCase(String name) {
+    public ExceptionUtilsTest(String name) {
         super(name);
     }
 
     public static Test suite() {
-        return new TestSuite(ExceptionUtilsTestCase.class);
+        return new TestSuite(ExceptionUtilsTest.class);
     }
 
     public void setUp() {
@@ -545,7 +546,7 @@
         assertEquals("IllegalArgumentException: Base", ExceptionUtils.getMessage(th));
         
         th = new ExceptionWithCause("Wrapper", th);
-        assertEquals("ExceptionUtilsTestCase.ExceptionWithCause: Wrapper", ExceptionUtils.getMessage(th));
+        assertEquals("ExceptionUtilsTest.ExceptionWithCause: Wrapper", ExceptionUtils.getMessage(th));
     }
 
     public void test_getRootCauseMessage_Throwable() {

Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/NestableDelegateTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/NestableDelegateTest.java?rev=751359&r1=751358&r2=751359&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/NestableDelegateTest.java
(original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/NestableDelegateTest.java
Sun Mar  8 02:20:22 2009
@@ -23,6 +23,7 @@
 import java.io.PrintWriter;
 
 import junit.framework.Test;
+import junit.framework.TestCase;
 import junit.framework.TestSuite;
 import junit.textui.TestRunner;
 
@@ -33,7 +34,7 @@
  * @author Daniel L. Rall
  * @version $Id$
  */
-public class NestableDelegateTestCase extends junit.framework.TestCase {
+public class NestableDelegateTest extends TestCase {
     private static final String CONSTRUCTOR_FAILED_MSG = 
     "The Nestable implementation passed to the NestableDelegate(Nestable) constructor must
extend java.lang.Throwable";
 
@@ -43,9 +44,9 @@
     protected String lineSeparator;
 
     /**
-     * Construct a new instance of NestableDelegateTestCase with the specified name
+     * Construct a new instance of NestableDelegateTest with the specified name
      */
-    public NestableDelegateTestCase(String name)
+    public NestableDelegateTest(String name)
     {
         super(name);
     }
@@ -60,7 +61,7 @@
     
     public static Test suite()
     {
-        return new TestSuite(NestableDelegateTestCase.class);
+        return new TestSuite(NestableDelegateTest.class);
     }
     
     /**

Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/NestableErrorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/NestableErrorTest.java?rev=751359&r1=751358&r2=751359&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/NestableErrorTest.java
(original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/NestableErrorTest.java
Sun Mar  8 02:20:22 2009
@@ -28,15 +28,15 @@
  * @author <a href="mailto:steven@caswell.name">Steven Caswell</a>
  * @version $Id$
  */
-public class NestableErrorTestCase extends AbstractNestableTestCase {
+public class NestableErrorTest extends AbstractNestableTest {
     
     /**
      * Construct a new instance of
-     * <code>NestableErrorTestCase</code>.
+     * <code>NestableErrorTest</code>.
      *
      * @param name test case name
      */
-    public NestableErrorTestCase(String name)
+    public NestableErrorTest(String name)
     {
         super(name);
     }
@@ -55,7 +55,7 @@
      */
     public static Test suite()
     {
-        return new TestSuite(NestableErrorTestCase.class);
+        return new TestSuite(NestableErrorTest.class);
     }
     
     /**
@@ -76,7 +76,7 @@
     }
 
     /**
-     * @see AbstractNestableTestCase#getNestable()
+     * @see AbstractNestableTest#getNestable()
      */
     public Nestable getNestable()
     {
@@ -84,7 +84,7 @@
     }    
     
     /**
-     * @see AbstractNestableTestCase#getNestable(Nestable)
+     * @see AbstractNestableTest#getNestable(Nestable)
      */
     public Nestable getNestable(Nestable n)
     {
@@ -92,7 +92,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getNestable(String)
+     * @see AbstractNestableTest#getNestable(String)
      */
     public Nestable getNestable(String msg)
     {
@@ -100,7 +100,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getNestable(Throwable)
+     * @see AbstractNestableTest#getNestable(Throwable)
      */
     public Nestable getNestable(Throwable t)
     {
@@ -108,7 +108,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getNestable(String, Throwable)
+     * @see AbstractNestableTest#getNestable(String, Throwable)
      */
     public Nestable getNestable(String msg, Throwable t)
     {
@@ -116,7 +116,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getNestable(String, Nestable)
+     * @see AbstractNestableTest#getNestable(String, Nestable)
      */
     public Nestable getNestable(String msg, Nestable n)
     {
@@ -124,7 +124,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getTester1(Throwable)
+     * @see AbstractNestableTest#getTester1(Throwable)
      */
     public Nestable getTester1(Throwable t)
     {
@@ -132,7 +132,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getTester1(Nestable)
+     * @see AbstractNestableTest#getTester1(Nestable)
      */
     public Nestable getTester1(Nestable n)
     {
@@ -140,7 +140,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getTester1(String, Throwable)
+     * @see AbstractNestableTest#getTester1(String, Throwable)
      */
     public Nestable getTester1(String msg, Throwable t)
     {
@@ -148,7 +148,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getTester1(String, Nestable)
+     * @see AbstractNestableTest#getTester1(String, Nestable)
      */
     public Nestable getTester1(String msg, Nestable n)
     {
@@ -156,7 +156,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getTester1Class()
+     * @see AbstractNestableTest#getTester1Class()
      */
     public Class getTester1Class()
     {
@@ -164,7 +164,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getTester2(String, Throwable)
+     * @see AbstractNestableTest#getTester2(String, Throwable)
      */
     public Nestable getTester2(String msg, Throwable t)
     {
@@ -172,7 +172,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getTester2(String, Nestable)
+     * @see AbstractNestableTest#getTester2(String, Nestable)
      */
     public Nestable getTester2(String msg, Nestable n)
     {
@@ -180,7 +180,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getTester2Class()
+     * @see AbstractNestableTest#getTester2Class()
      */
     public Class getTester2Class()
     {
@@ -188,7 +188,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getThrowable(String)
+     * @see AbstractNestableTest#getThrowable(String)
      */
     public Throwable getThrowable(String msg)
     {
@@ -196,7 +196,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getThrowableClass()
+     * @see AbstractNestableTest#getThrowableClass()
      */
     public Class getThrowableClass()
     {
@@ -204,7 +204,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getBaseThrowableClass()
+     * @see AbstractNestableTest#getBaseThrowableClass()
      */
     public Class getBaseThrowableClass()
     {

Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/NestableExceptionTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/NestableExceptionTest.java?rev=751359&r1=751358&r2=751359&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/NestableExceptionTest.java
(original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/NestableExceptionTest.java
Sun Mar  8 02:20:22 2009
@@ -33,15 +33,15 @@
  * @author <a href="mailto:steven@caswell.name">Steven Caswell</a>
  * @version $Id$
  */
-public class NestableExceptionTestCase extends AbstractNestableTestCase {
+public class NestableExceptionTest extends AbstractNestableTest {
     
     /**
      * Construct a new instance of
-     * <code>NestableExceptionTestCase</code>.
+     * <code>NestableExceptionTest</code>.
      *
      * @param name test case name
      */
-    public NestableExceptionTestCase(String name)
+    public NestableExceptionTest(String name)
     {
         super(name);
     }
@@ -60,7 +60,7 @@
      */
     public static Test suite()
     {
-        return new TestSuite(NestableExceptionTestCase.class);
+        return new TestSuite(NestableExceptionTest.class);
     }
     
     /**
@@ -81,7 +81,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getNestable()
+     * @see AbstractNestableTest#getNestable()
      */
     public Nestable getNestable()
     {
@@ -89,7 +89,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getNestable(Nestable)
+     * @see AbstractNestableTest#getNestable(Nestable)
      */
     public Nestable getNestable(Nestable n)
     {
@@ -97,7 +97,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getNestable(String)
+     * @see AbstractNestableTest#getNestable(String)
      */
     public Nestable getNestable(String msg)
     {
@@ -105,7 +105,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getNestable(Throwable)
+     * @see AbstractNestableTest#getNestable(Throwable)
      */
     public Nestable getNestable(Throwable t)
     {
@@ -113,7 +113,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getNestable(String, Throwable)
+     * @see AbstractNestableTest#getNestable(String, Throwable)
      */
     public Nestable getNestable(String msg, Throwable t)
     {
@@ -121,7 +121,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getNestable(String, Nestable)
+     * @see AbstractNestableTest#getNestable(String, Nestable)
      */
     public Nestable getNestable(String msg, Nestable n)
     {
@@ -129,7 +129,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getTester1(Throwable)
+     * @see AbstractNestableTest#getTester1(Throwable)
      */
     public Nestable getTester1(Throwable t)
     {
@@ -137,7 +137,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getTester1(Nestable)
+     * @see AbstractNestableTest#getTester1(Nestable)
      */
     public Nestable getTester1(Nestable n)
     {
@@ -145,7 +145,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getTester1(String, Throwable)
+     * @see AbstractNestableTest#getTester1(String, Throwable)
      */
     public Nestable getTester1(String msg, Throwable t)
     {
@@ -153,7 +153,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getTester1(String, Nestable)
+     * @see AbstractNestableTest#getTester1(String, Nestable)
      */
     public Nestable getTester1(String msg, Nestable n)
     {
@@ -161,7 +161,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getTester1Class()
+     * @see AbstractNestableTest#getTester1Class()
      */
     public Class getTester1Class()
     {
@@ -169,7 +169,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getTester2(String, Throwable)
+     * @see AbstractNestableTest#getTester2(String, Throwable)
      */
     public Nestable getTester2(String msg, Throwable t)
     {
@@ -177,7 +177,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getTester2(String, Nestable)
+     * @see AbstractNestableTest#getTester2(String, Nestable)
      */
     public Nestable getTester2(String msg, Nestable n)
     {
@@ -185,7 +185,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getTester2Class()
+     * @see AbstractNestableTest#getTester2Class()
      */
     public Class getTester2Class()
     {
@@ -193,7 +193,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getThrowable(String)
+     * @see AbstractNestableTest#getThrowable(String)
      */
     public Throwable getThrowable(String msg)
     {
@@ -201,7 +201,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getThrowableClass()
+     * @see AbstractNestableTest#getThrowableClass()
      */
     public Class getThrowableClass()
     {
@@ -209,7 +209,7 @@
     }
 
     /**
-     * @see AbstractNestableTestCase#getBaseThrowableClass()
+     * @see AbstractNestableTest#getBaseThrowableClass()
      */
     public Class getBaseThrowableClass()
     {

Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/NestableRuntimeExceptionTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/NestableRuntimeExceptionTest.java?rev=751359&r1=751358&r2=751359&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/NestableRuntimeExceptionTest.java
(original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/exception/NestableRuntimeExceptionTest.java
Sun Mar  8 02:20:22 2009
@@ -30,15 +30,15 @@
  * @author <a href="mailto:steven@caswell.name">Steven Caswell</a>
  * @version $Id$
  */
-public class NestableRuntimeExceptionTestCase extends AbstractNestableTestCase {
+public class NestableRuntimeExceptionTest extends AbstractNestableTest {
     
     /**
      * Construct a new instance of
-     * <code>NestableRuntimeExceptionTestCase</code>.
+     * <code>NestableRuntimeExceptionTest</code>.
      *
      * @param name test case name
      */
-    public NestableRuntimeExceptionTestCase(String name)
+    public NestableRuntimeExceptionTest(String name)
     {
         super(name);
     }
@@ -57,7 +57,7 @@
      */
     public static Test suite()
     {
-        return new TestSuite(NestableRuntimeExceptionTestCase.class);
+        return new TestSuite(NestableRuntimeExceptionTest.class);
     }
     
     /**
@@ -78,7 +78,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getNestable()
+     * @see AbstractNestableTest#getNestable()
      */
     public Nestable getNestable()
     {
@@ -86,7 +86,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getNestable(Nestable)
+     * @see AbstractNestableTest#getNestable(Nestable)
      */
     public Nestable getNestable(Nestable n)
     {
@@ -94,7 +94,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getNestable(String)
+     * @see AbstractNestableTest#getNestable(String)
      */
     public Nestable getNestable(String msg)
     {
@@ -102,7 +102,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getNestable(Throwable)
+     * @see AbstractNestableTest#getNestable(Throwable)
      */
     public Nestable getNestable(Throwable t)
     {
@@ -110,7 +110,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getNestable(String, Throwable)
+     * @see AbstractNestableTest#getNestable(String, Throwable)
      */
     public Nestable getNestable(String msg, Throwable t)
     {
@@ -118,7 +118,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getNestable(String, Nestable)
+     * @see AbstractNestableTest#getNestable(String, Nestable)
      */
     public Nestable getNestable(String msg, Nestable n)
     {
@@ -126,7 +126,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getTester1(Throwable)
+     * @see AbstractNestableTest#getTester1(Throwable)
      */
     public Nestable getTester1(Throwable t)
     {
@@ -134,7 +134,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getTester1(Nestable)
+     * @see AbstractNestableTest#getTester1(Nestable)
      */
     public Nestable getTester1(Nestable n)
     {
@@ -142,7 +142,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getTester1(String, Throwable)
+     * @see AbstractNestableTest#getTester1(String, Throwable)
      */
     public Nestable getTester1(String msg, Throwable t)
     {
@@ -150,7 +150,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getTester1(String, Nestable)
+     * @see AbstractNestableTest#getTester1(String, Nestable)
      */
     public Nestable getTester1(String msg, Nestable n)
     {
@@ -158,7 +158,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getTester1Class()
+     * @see AbstractNestableTest#getTester1Class()
      */
     public Class getTester1Class()
     {
@@ -166,7 +166,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getTester2(String, Throwable)
+     * @see AbstractNestableTest#getTester2(String, Throwable)
      */
     public Nestable getTester2(String msg, Throwable t)
     {
@@ -174,7 +174,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getTester2(String, Nestable)
+     * @see AbstractNestableTest#getTester2(String, Nestable)
      */
     public Nestable getTester2(String msg, Nestable n)
     {
@@ -182,7 +182,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getTester2Class()
+     * @see AbstractNestableTest#getTester2Class()
      */
     public Class getTester2Class()
     {
@@ -190,7 +190,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getThrowable(String)
+     * @see AbstractNestableTest#getThrowable(String)
      */
     public Throwable getThrowable(String msg)
     {
@@ -198,7 +198,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getThrowableClass()
+     * @see AbstractNestableTest#getThrowableClass()
      */
     public Class getThrowableClass()
     {
@@ -206,7 +206,7 @@
     }
     
     /**
-     * @see AbstractNestableTestCase#getBaseThrowableClass()
+     * @see AbstractNestableTest#getBaseThrowableClass()
      */
     public Class getBaseThrowableClass()
     {



Mime
View raw message