You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ni...@apache.org on 2010/02/02 14:30:06 UTC
svn commit: r905628 [2/2] - in /commons/proper/lang/branches/LANG_2_X: ./
src/test/java/org/apache/commons/lang/
src/test/java/org/apache/commons/lang/builder/
src/test/java/org/apache/commons/lang/enum/
src/test/java/org/apache/commons/lang/enums/ src...
Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/exception/NestableErrorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/exception/NestableErrorTest.java?rev=905628&r1=905627&r2=905628&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/exception/NestableErrorTest.java (original)
+++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/exception/NestableErrorTest.java Tue Feb 2 13:29:55 2010
@@ -18,10 +18,6 @@
import java.io.EOFException;
-import junit.framework.Test;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
-
/**
* Tests the org.apache.commons.lang.exception.NestableError class.
*
@@ -47,16 +43,6 @@
public void setUp()
{
}
-
- /**
- * Returns the test suite
- *
- * @return the test suite
- */
- public static Test suite()
- {
- return new TestSuite(NestableErrorTest.class);
- }
/**
* Tears down instance variables required by this test case.
@@ -66,16 +52,6 @@
}
/**
- * Command line entry point for running the test suite.
- *
- * @param args array of command line arguments
- */
- public static void main(String args[])
- {
- TestRunner.run(suite());
- }
-
- /**
* @see AbstractNestableTest#getNestable()
*/
public Nestable getNestable()
Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/exception/NestableExceptionTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/exception/NestableExceptionTest.java?rev=905628&r1=905627&r2=905628&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/exception/NestableExceptionTest.java (original)
+++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/exception/NestableExceptionTest.java Tue Feb 2 13:29:55 2010
@@ -23,10 +23,6 @@
import java.io.ObjectOutputStream;
import java.io.PrintStream;
-import junit.framework.Test;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
-
/**
* Tests the org.apache.commons.lang.exception.NestableException class.
*
@@ -54,16 +50,6 @@
}
/**
- * Returns the test suite
- *
- * @return the test suite
- */
- public static Test suite()
- {
- return new TestSuite(NestableExceptionTest.class);
- }
-
- /**
* Tears down instance variables required by this test case.
*/
public void tearDown()
@@ -71,16 +57,6 @@
}
/**
- * Command line entry point for running the test suite.
- *
- * @param args array of command line arguments
- */
- public static void main(String args[])
- {
- TestRunner.run(suite());
- }
-
- /**
* @see AbstractNestableTest#getNestable()
*/
public Nestable getNestable()
Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/exception/NestableRuntimeExceptionTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/exception/NestableRuntimeExceptionTest.java?rev=905628&r1=905627&r2=905628&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/exception/NestableRuntimeExceptionTest.java (original)
+++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/exception/NestableRuntimeExceptionTest.java Tue Feb 2 13:29:55 2010
@@ -20,10 +20,6 @@
import java.io.EOFException;
import java.io.PrintStream;
-import junit.framework.Test;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
-
/**
* Tests the org.apache.commons.lang.exception.NestableRuntimeException class.
*
@@ -51,16 +47,6 @@
}
/**
- * Returns the test suite
- *
- * @return the test suite
- */
- public static Test suite()
- {
- return new TestSuite(NestableRuntimeExceptionTest.class);
- }
-
- /**
* Tears down instance variables required by this test case.
*/
public void tearDown()
@@ -68,16 +54,6 @@
}
/**
- * Command line entry point for running the test suite.
- *
- * @param args array of command line arguments
- */
- public static void main(String args[])
- {
- TestRunner.run(suite());
- }
-
- /**
* @see AbstractNestableTest#getNestable()
*/
public Nestable getNestable()
Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/math/DoubleRangeTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/math/DoubleRangeTest.java?rev=905628&r1=905627&r2=905628&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/math/DoubleRangeTest.java (original)
+++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/math/DoubleRangeTest.java Tue Feb 2 13:29:55 2010
@@ -18,9 +18,6 @@
*/
package org.apache.commons.lang.math;
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
/**
* Test cases for the {@link DoubleRange} class.
*
@@ -32,12 +29,6 @@
public DoubleRangeTest(String name) {
super(name);
}
-
- public static Test suite() {
- TestSuite suite = new TestSuite(DoubleRangeTest.class);
- suite.setName("DoubleRange Tests");
- return suite;
- }
public void setUp() {
super.setUp();
Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/math/FloatRangeTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/math/FloatRangeTest.java?rev=905628&r1=905627&r2=905628&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/math/FloatRangeTest.java (original)
+++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/math/FloatRangeTest.java Tue Feb 2 13:29:55 2010
@@ -18,9 +18,6 @@
*/
package org.apache.commons.lang.math;
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
/**
* Test cases for the {@link FloatRange} class.
*
@@ -32,12 +29,6 @@
public FloatRangeTest(String name) {
super(name);
}
-
- public static Test suite() {
- TestSuite suite = new TestSuite(FloatRangeTest.class);
- suite.setName("FloatRange Tests");
- return suite;
- }
public void setUp() {
super.setUp();
Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/math/FractionTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/math/FractionTest.java?rev=905628&r1=905627&r2=905628&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/math/FractionTest.java (original)
+++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/math/FractionTest.java Tue Feb 2 13:29:55 2010
@@ -18,9 +18,7 @@
*/
package org.apache.commons.lang.math;
-import junit.framework.Test;
import junit.framework.TestCase;
-import junit.framework.TestSuite;
/**
* Test cases for the {@link Fraction} class
@@ -37,15 +35,6 @@
super(name);
}
- public static Test suite() {
- TestSuite suite = new TestSuite(FractionTest.class);
- suite.setName("Fraction Tests");
- return suite;
- }
-
- public void setUp() {
- }
-
//--------------------------------------------------------------------------
public void testConstants() {
Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/math/IntRangeTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/math/IntRangeTest.java?rev=905628&r1=905627&r2=905628&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/math/IntRangeTest.java (original)
+++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/math/IntRangeTest.java Tue Feb 2 13:29:55 2010
@@ -18,9 +18,6 @@
*/
package org.apache.commons.lang.math;
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
import java.util.Arrays;
/**
@@ -36,12 +33,6 @@
public IntRangeTest(String name) {
super(name);
}
-
- public static Test suite() {
- TestSuite suite = new TestSuite(IntRangeTest.class);
- suite.setName("IntRange Tests");
- return suite;
- }
public void setUp() {
super.setUp();
Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/math/LongRangeTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/math/LongRangeTest.java?rev=905628&r1=905627&r2=905628&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/math/LongRangeTest.java (original)
+++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/math/LongRangeTest.java Tue Feb 2 13:29:55 2010
@@ -18,9 +18,6 @@
*/
package org.apache.commons.lang.math;
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
import java.util.Arrays;
/**
@@ -34,12 +31,6 @@
public LongRangeTest(String name) {
super(name);
}
-
- public static Test suite() {
- TestSuite suite = new TestSuite(LongRangeTest.class);
- suite.setName("LongRange Tests");
- return suite;
- }
public void setUp() {
super.setUp();
Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/math/NumberRangeTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/math/NumberRangeTest.java?rev=905628&r1=905627&r2=905628&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/math/NumberRangeTest.java (original)
+++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/math/NumberRangeTest.java Tue Feb 2 13:29:55 2010
@@ -19,9 +19,6 @@
package org.apache.commons.lang.math;
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
/**
* Test cases for the {@link NumberRange} class.
*
@@ -32,12 +29,6 @@
*/
public final class NumberRangeTest extends AbstractRangeTest {
- public static Test suite() {
- TestSuite suite = new TestSuite(NumberRangeTest.class);
- suite.setName("NumberRange Tests");
- return suite;
- }
-
public NumberRangeTest(String name) {
super(name);
}
Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/math/NumberUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/math/NumberUtilsTest.java?rev=905628&r1=905627&r2=905628&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/math/NumberUtilsTest.java (original)
+++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/math/NumberUtilsTest.java Tue Feb 2 13:29:55 2010
@@ -21,10 +21,7 @@
import java.math.BigDecimal;
import java.math.BigInteger;
-import junit.framework.Test;
import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
import org.apache.commons.lang.SystemUtils;
@@ -46,16 +43,6 @@
super(name);
}
- public static void main(String[] args) {
- TestRunner.run(suite());
- }
-
- public static Test suite() {
- TestSuite suite = new TestSuite(NumberUtilsTest.class);
- suite.setName("NumberUtils Tests");
- return suite;
- }
-
//-----------------------------------------------------------------------
public void testConstructor() {
assertNotNull(new NumberUtils());
Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/math/RandomUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/math/RandomUtilsTest.java?rev=905628&r1=905627&r2=905628&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/math/RandomUtilsTest.java (original)
+++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/math/RandomUtilsTest.java Tue Feb 2 13:29:55 2010
@@ -18,9 +18,7 @@
import java.util.Random;
-import junit.framework.Test;
import junit.framework.TestCase;
-import junit.framework.TestSuite;
/**
* Test cases for the {@link RandomUtils} class.
@@ -38,12 +36,6 @@
public void setUp() {
}
- public static Test suite() {
- TestSuite suite = new TestSuite(RandomUtilsTest.class);
- suite.setName("RandomUtils Tests");
- return suite;
- }
-
/** test distribution of nextInt() */
public void testNextInt() {
tstNextInt(null);
Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/math/RangeTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/math/RangeTest.java?rev=905628&r1=905627&r2=905628&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/math/RangeTest.java (original)
+++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/math/RangeTest.java Tue Feb 2 13:29:55 2010
@@ -17,9 +17,7 @@
package org.apache.commons.lang.math;
-import junit.framework.Test;
import junit.framework.TestCase;
-import junit.framework.TestSuite;
/**
* <p>
@@ -58,12 +56,6 @@
}
}
- public static Test suite() {
- TestSuite suite = new TestSuite(RangeTest.class);
- suite.setName("Range Tests");
- return suite;
- }
-
public RangeTest(String name) {
super(name);
}
Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/mutable/MutableBooleanTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/mutable/MutableBooleanTest.java?rev=905628&r1=905627&r2=905628&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/mutable/MutableBooleanTest.java (original)
+++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/mutable/MutableBooleanTest.java Tue Feb 2 13:29:55 2010
@@ -17,10 +17,7 @@
package org.apache.commons.lang.mutable;
-import junit.framework.Test;
import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
/**
* JUnit tests.
@@ -32,14 +29,6 @@
*/
public class MutableBooleanTest extends TestCase {
- public static void main(String[] args) {
- TestRunner.run(suite());
- }
-
- public static Test suite() {
- return new TestSuite(MutableBooleanTest.class);
- }
-
public MutableBooleanTest(String testName) {
super(testName);
}
Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/mutable/MutableByteTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/mutable/MutableByteTest.java?rev=905628&r1=905627&r2=905628&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/mutable/MutableByteTest.java (original)
+++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/mutable/MutableByteTest.java Tue Feb 2 13:29:55 2010
@@ -16,10 +16,7 @@
*/
package org.apache.commons.lang.mutable;
-import junit.framework.Test;
import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
/**
* JUnit tests.
@@ -33,14 +30,6 @@
super(testName);
}
- public static void main(String[] args) {
- TestRunner.run(suite());
- }
-
- public static Test suite() {
- return new TestSuite(MutableByteTest.class);
- }
-
// ----------------------------------------------------------------
public void testConstructors() {
assertEquals((byte) 0, new MutableByte().byteValue());
Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/mutable/MutableDoubleTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/mutable/MutableDoubleTest.java?rev=905628&r1=905627&r2=905628&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/mutable/MutableDoubleTest.java (original)
+++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/mutable/MutableDoubleTest.java Tue Feb 2 13:29:55 2010
@@ -16,10 +16,7 @@
*/
package org.apache.commons.lang.mutable;
-import junit.framework.Test;
import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
/**
* JUnit tests.
@@ -33,14 +30,6 @@
super(testName);
}
- public static void main(String[] args) {
- TestRunner.run(suite());
- }
-
- public static Test suite() {
- return new TestSuite(MutableDoubleTest.class);
- }
-
// ----------------------------------------------------------------
public void testConstructors() {
assertEquals(0d, new MutableDouble().doubleValue(), 0.0001d);
Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/mutable/MutableFloatTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/mutable/MutableFloatTest.java?rev=905628&r1=905627&r2=905628&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/mutable/MutableFloatTest.java (original)
+++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/mutable/MutableFloatTest.java Tue Feb 2 13:29:55 2010
@@ -16,10 +16,7 @@
*/
package org.apache.commons.lang.mutable;
-import junit.framework.Test;
import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
/**
* JUnit tests.
@@ -33,14 +30,6 @@
super(testName);
}
- public static void main(String[] args) {
- TestRunner.run(suite());
- }
-
- public static Test suite() {
- return new TestSuite(MutableFloatTest.class);
- }
-
// ----------------------------------------------------------------
public void testConstructors() {
assertEquals(0f, new MutableFloat().floatValue(), 0.0001f);
Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/mutable/MutableIntTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/mutable/MutableIntTest.java?rev=905628&r1=905627&r2=905628&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/mutable/MutableIntTest.java (original)
+++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/mutable/MutableIntTest.java Tue Feb 2 13:29:55 2010
@@ -16,10 +16,7 @@
*/
package org.apache.commons.lang.mutable;
-import junit.framework.Test;
import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
/**
* JUnit tests.
@@ -33,14 +30,6 @@
super(testName);
}
- public static void main(String[] args) {
- TestRunner.run(suite());
- }
-
- public static Test suite() {
- return new TestSuite(MutableIntTest.class);
- }
-
// ----------------------------------------------------------------
public void testConstructors() {
assertEquals(0, new MutableInt().intValue());
Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/mutable/MutableLongTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/mutable/MutableLongTest.java?rev=905628&r1=905627&r2=905628&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/mutable/MutableLongTest.java (original)
+++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/mutable/MutableLongTest.java Tue Feb 2 13:29:55 2010
@@ -16,10 +16,7 @@
*/
package org.apache.commons.lang.mutable;
-import junit.framework.Test;
import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
/**
* JUnit tests.
@@ -33,14 +30,6 @@
super(testName);
}
- public static void main(String[] args) {
- TestRunner.run(suite());
- }
-
- public static Test suite() {
- return new TestSuite(MutableLongTest.class);
- }
-
// ----------------------------------------------------------------
public void testConstructors() {
assertEquals(0, new MutableLong().longValue());
Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/mutable/MutableObjectTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/mutable/MutableObjectTest.java?rev=905628&r1=905627&r2=905628&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/mutable/MutableObjectTest.java (original)
+++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/mutable/MutableObjectTest.java Tue Feb 2 13:29:55 2010
@@ -16,10 +16,7 @@
*/
package org.apache.commons.lang.mutable;
-import junit.framework.Test;
import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
/**
* JUnit tests.
@@ -33,14 +30,6 @@
super(testName);
}
- public static void main(String[] args) {
- TestRunner.run(suite());
- }
-
- public static Test suite() {
- return new TestSuite(MutableObjectTest.class);
- }
-
// ----------------------------------------------------------------
public void testConstructors() {
assertEquals(null, new MutableObject().getValue());
Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/mutable/MutableShortTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/mutable/MutableShortTest.java?rev=905628&r1=905627&r2=905628&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/mutable/MutableShortTest.java (original)
+++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/mutable/MutableShortTest.java Tue Feb 2 13:29:55 2010
@@ -16,10 +16,7 @@
*/
package org.apache.commons.lang.mutable;
-import junit.framework.Test;
import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
/**
* JUnit tests.
@@ -33,14 +30,6 @@
super(testName);
}
- public static void main(String[] args) {
- TestRunner.run(suite());
- }
-
- public static Test suite() {
- return new TestSuite(MutableShortTest.class);
- }
-
// ----------------------------------------------------------------
public void testConstructors() {
assertEquals((short) 0, new MutableShort().shortValue());
Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/reflect/ConstructorUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/reflect/ConstructorUtilsTest.java?rev=905628&r1=905627&r2=905628&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/reflect/ConstructorUtilsTest.java (original)
+++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/reflect/ConstructorUtilsTest.java Tue Feb 2 13:29:55 2010
@@ -21,9 +21,7 @@
import java.util.HashMap;
import java.util.Map;
-import junit.framework.Test;
import junit.framework.TestCase;
-import junit.framework.TestSuite;
import org.apache.commons.lang.ArrayUtils;
import org.apache.commons.lang.math.NumberUtils;
@@ -78,15 +76,6 @@
classCache = new HashMap();
}
- /**
- * Run the test cases as a suite.
- * @return the Test
- */
- public static Test suite() {
- TestSuite suite = new TestSuite(ConstructorUtilsTest.class);
- suite.setName("ConstructorUtils Tests");
- return suite;
- }
protected void setUp() throws Exception {
super.setUp();
Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/reflect/FieldUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/reflect/FieldUtilsTest.java?rev=905628&r1=905627&r2=905628&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/reflect/FieldUtilsTest.java (original)
+++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/reflect/FieldUtilsTest.java Tue Feb 2 13:29:55 2010
@@ -26,10 +26,7 @@
import org.apache.commons.lang.reflect.testbed.StaticContainer;
import org.apache.commons.lang.reflect.testbed.StaticContainerChild;
-import junit.framework.Test;
import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
/**
* Unit tests FieldUtils
* @author mbenson
@@ -49,15 +46,6 @@
private PrivatelyShadowedChild privatelyShadowedChild;
private Class parentClass = PublicChild.class.getSuperclass();
- /**
- * Run the test cases as a suite.
- * @return the Test
- */
- public static Test suite() {
- TestSuite suite = new TestSuite(FieldUtilsTest.class);
- suite.setName("FieldUtils Tests");
- return suite;
- }
protected void setUp() throws Exception {
super.setUp();
Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/reflect/MethodUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/reflect/MethodUtilsTest.java?rev=905628&r1=905627&r2=905628&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/reflect/MethodUtilsTest.java (original)
+++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/reflect/MethodUtilsTest.java Tue Feb 2 13:29:55 2010
@@ -21,9 +21,7 @@
import java.util.HashMap;
import java.util.Map;
-import junit.framework.Test;
import junit.framework.TestCase;
-import junit.framework.TestSuite;
import org.apache.commons.lang.ArrayUtils;
import org.apache.commons.lang.math.NumberUtils;
@@ -104,15 +102,6 @@
classCache = new HashMap();
}
- /**
- * Run the test cases as a suite.
- * @return the Test
- */
- public static Test suite() {
- TestSuite suite = new TestSuite(MethodUtilsTest.class);
- suite.setName("MethodUtils Tests");
- return suite;
- }
protected void setUp() throws Exception {
super.setUp();
Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/text/CompositeFormatTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/text/CompositeFormatTest.java?rev=905628&r1=905627&r2=905628&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/text/CompositeFormatTest.java (original)
+++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/text/CompositeFormatTest.java Tue Feb 2 13:29:55 2010
@@ -23,10 +23,7 @@
import java.text.SimpleDateFormat;
import java.util.Locale;
-import junit.framework.Test;
import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
/**
* Unit tests for {@link org.apache.commons.lang.text.CompositeFormat}.
@@ -34,26 +31,6 @@
public class CompositeFormatTest extends TestCase {
/**
- * Main method.
- *
- * @param args command line arguments, ignored
- */
- public static void main(String[] args) {
- TestRunner.run(suite());
- }
-
- /**
- * Return a new test suite containing this test case.
- *
- * @return a new test suite containing this test case
- */
- public static Test suite() {
- TestSuite suite = new TestSuite(CompositeFormatTest.class);
- suite.setName("CompositeFormat Tests");
- return suite;
- }
-
- /**
* Create a new test case with the specified name.
*
* @param name
Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/text/ExtendedMessageFormatTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/text/ExtendedMessageFormatTest.java?rev=905628&r1=905627&r2=905628&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/text/ExtendedMessageFormatTest.java (original)
+++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/text/ExtendedMessageFormatTest.java Tue Feb 2 13:29:55 2010
@@ -33,10 +33,7 @@
import java.util.Map;
import org.apache.commons.lang.SystemUtils;
-
-import junit.framework.Test;
import junit.framework.TestCase;
-import junit.framework.TestSuite;
/**
* Test case for {@link ExtendedMessageFormat}.
@@ -49,17 +46,6 @@
private Map registry = new HashMap();
/**
- * Return a new test suite containing this test case.
- *
- * @return a new test suite containing this test case
- */
- public static Test suite() {
- TestSuite suite = new TestSuite(ExtendedMessageFormatTest.class);
- suite.setName("ExtendedMessageFormat Tests");
- return suite;
- }
-
- /**
* Create a new test case.
*
* @param name The name of the test
@@ -74,10 +60,6 @@
registry.put("upper", new UpperCaseFormatFactory());
}
- protected void tearDown() throws Exception {
- super.tearDown();
- }
-
/**
* Test extended formats.
*/
Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/text/StrBuilderAppendInsertTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/text/StrBuilderAppendInsertTest.java?rev=905628&r1=905627&r2=905628&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/text/StrBuilderAppendInsertTest.java (original)
+++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/text/StrBuilderAppendInsertTest.java Tue Feb 2 13:29:55 2010
@@ -22,10 +22,7 @@
import java.util.Collections;
import java.util.Iterator;
-import junit.framework.Test;
import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
import org.apache.commons.lang.SystemUtils;
@@ -47,26 +44,6 @@
};
/**
- * Main method.
- *
- * @param args command line arguments, ignored
- */
- public static void main(String[] args) {
- TestRunner.run(suite());
- }
-
- /**
- * Return a new test suite containing this test case.
- *
- * @return a new test suite containing this test case
- */
- public static Test suite() {
- TestSuite suite = new TestSuite(StrBuilderAppendInsertTest.class);
- suite.setName("StrBuilder Tests");
- return suite;
- }
-
- /**
* Create a new test case with the specified name.
*
* @param name the name
Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/text/StrBuilderTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/text/StrBuilderTest.java?rev=905628&r1=905627&r2=905628&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/text/StrBuilderTest.java (original)
+++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/text/StrBuilderTest.java Tue Feb 2 13:29:55 2010
@@ -21,10 +21,7 @@
import java.io.Writer;
import java.util.Arrays;
-import junit.framework.Test;
import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
import org.apache.commons.lang.ArrayUtils;
@@ -37,26 +34,6 @@
public class StrBuilderTest extends TestCase {
/**
- * Main method.
- *
- * @param args command line arguments, ignored
- */
- public static void main(String[] args) {
- TestRunner.run(suite());
- }
-
- /**
- * Return a new test suite containing this test case.
- *
- * @return a new test suite containing this test case
- */
- public static Test suite() {
- TestSuite suite = new TestSuite(StrBuilderTest.class);
- suite.setName("StrBuilder Tests");
- return suite;
- }
-
- /**
* Create a new test case with the specified name.
*
* @param name
Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/text/StrLookupTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/text/StrLookupTest.java?rev=905628&r1=905627&r2=905628&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/text/StrLookupTest.java (original)
+++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/text/StrLookupTest.java Tue Feb 2 13:29:55 2010
@@ -20,10 +20,7 @@
import java.util.HashMap;
import java.util.Map;
-import junit.framework.Test;
import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
/**
* Test class for StrLookup.
@@ -32,34 +29,6 @@
*/
public class StrLookupTest extends TestCase {
- /**
- * Main method.
- *
- * @param args command line arguments, ignored
- */
- public static void main(String[] args) {
- TestRunner.run(suite());
- }
-
- /**
- * Return a new test suite containing this test case.
- *
- * @return a new test suite containing this test case
- */
- public static Test suite() {
- TestSuite suite = new TestSuite(StrLookupTest.class);
- suite.setName("StrLookup Tests");
- return suite;
- }
-
- protected void setUp() throws Exception {
- super.setUp();
- }
-
- protected void tearDown() throws Exception {
- super.tearDown();
- }
-
//-----------------------------------------------------------------------
public void testNoneLookup() {
assertEquals(null, StrLookup.noneLookup().lookup(null));
Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/text/StrMatcherTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/text/StrMatcherTest.java?rev=905628&r1=905627&r2=905628&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/text/StrMatcherTest.java (original)
+++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/text/StrMatcherTest.java Tue Feb 2 13:29:55 2010
@@ -17,10 +17,7 @@
package org.apache.commons.lang.text;
-import junit.framework.Test;
import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
/**
* Unit tests for {@link org.apache.commons.lang.text.StrMatcher}.
@@ -34,26 +31,6 @@
private static final char[] BUFFER2 = "abcdef".toCharArray();
/**
- * Main method.
- *
- * @param args command line arguments, ignored
- */
- public static void main(String[] args) {
- TestRunner.run(suite());
- }
-
- /**
- * Return a new test suite containing this test case.
- *
- * @return a new test suite containing this test case
- */
- public static Test suite() {
- TestSuite suite = new TestSuite(StrMatcherTest.class);
- suite.setName("StrMatcher Tests");
- return suite;
- }
-
- /**
* Create a new test case with the specified name.
*
* @param name the name
Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/text/StrSubstitutorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/text/StrSubstitutorTest.java?rev=905628&r1=905627&r2=905628&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/text/StrSubstitutorTest.java (original)
+++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/text/StrSubstitutorTest.java Tue Feb 2 13:29:55 2010
@@ -20,10 +20,7 @@
import java.util.HashMap;
import java.util.Map;
-import junit.framework.Test;
import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
import org.apache.commons.lang.mutable.MutableObject;
@@ -37,25 +34,6 @@
private Map values;
- /**
- * Main method.
- *
- * @param args command line arguments, ignored
- */
- public static void main(String[] args) {
- TestRunner.run(suite());
- }
-
- /**
- * Return a new test suite containing this test case.
- *
- * @return a new test suite containing this test case
- */
- public static Test suite() {
- TestSuite suite = new TestSuite(StrSubstitutorTest.class);
- suite.setName("StrSubstitutor Tests");
- return suite;
- }
protected void setUp() throws Exception {
super.setUp();
Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/text/StrTokenizerTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/text/StrTokenizerTest.java?rev=905628&r1=905627&r2=905628&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/text/StrTokenizerTest.java (original)
+++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/text/StrTokenizerTest.java Tue Feb 2 13:29:55 2010
@@ -22,10 +22,7 @@
import java.util.List;
import java.util.NoSuchElementException;
-import junit.framework.Test;
import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
import org.apache.commons.lang.ArrayUtils;
import org.apache.commons.lang.ObjectUtils;
@@ -41,16 +38,6 @@
private static final String TSV_SIMPLE_FIXTURE = "A\tb\tc";
- public static void main(String[] args) {
- TestRunner.run(suite());
- }
-
- public static Test suite() {
- TestSuite suite = new TestSuite(StrTokenizerTest.class);
- suite.setName("TokenizerTest Tests");
- return suite;
- }
-
/**
* JUnit constructor.
*
Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/time/DateFormatUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/time/DateFormatUtilsTest.java?rev=905628&r1=905627&r2=905628&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/time/DateFormatUtilsTest.java (original)
+++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/time/DateFormatUtilsTest.java Tue Feb 2 13:29:55 2010
@@ -22,10 +22,7 @@
import java.util.Locale;
import java.util.TimeZone;
-import junit.framework.Test;
import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
/**
* TestCase for DateFormatUtils.
@@ -38,16 +35,6 @@
*/
public class DateFormatUtilsTest extends TestCase {
- public static void main(String[] args) {
- TestRunner.run(suite());
- }
-
- public static Test suite() {
- TestSuite suite = new TestSuite(DateFormatUtilsTest.class);
- suite.setName("DateFormatUtils Tests");
- return suite;
- }
-
public DateFormatUtilsTest(String s) {
super(s);
}
Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/time/DateUtilsFragmentTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/time/DateUtilsFragmentTest.java?rev=905628&r1=905627&r2=905628&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/time/DateUtilsFragmentTest.java (original)
+++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/time/DateUtilsFragmentTest.java Tue Feb 2 13:29:55 2010
@@ -20,20 +20,12 @@
import java.util.Date;
import junit.framework.TestCase;
-import junit.framework.Test;
-import junit.framework.TestSuite;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.time.DateFormatUtils;
public class DateUtilsFragmentTest extends TestCase {
- public static Test suite() {
- TestSuite suite = new TestSuite(DateUtilsFragmentTest.class);
- suite.setName("DateUtils Fragment Tests");
- return suite;
- }
-
private static final int months = 7; // second final prime before 12
private static final int days = 23; // second final prime before 31 (and valid)
private static final int hours = 19; // second final prime before 24
Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/time/DateUtilsRoundingTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/time/DateUtilsRoundingTest.java?rev=905628&r1=905627&r2=905628&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/time/DateUtilsRoundingTest.java (original)
+++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/time/DateUtilsRoundingTest.java Tue Feb 2 13:29:55 2010
@@ -23,8 +23,6 @@
import java.util.Locale;
import junit.framework.TestCase;
-import junit.framework.Test;
-import junit.framework.TestSuite;
/**
* These Unit-tests will check all possible extremes when using some rounding-methods of DateUtils.
@@ -43,12 +41,6 @@
// TODO: Add DateUtils.ceil()-tests if method is available
public class DateUtilsRoundingTest extends TestCase {
- public static Test suite() {
- TestSuite suite = new TestSuite(DateUtilsRoundingTest.class);
- suite.setName("DateUtils Rounding Tests");
- return suite;
- }
-
DateFormat dateTimeParser;
Date januaryOneDate;
Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/time/DateUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/time/DateUtilsTest.java?rev=905628&r1=905627&r2=905628&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/time/DateUtilsTest.java (original)
+++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/time/DateUtilsTest.java Tue Feb 2 13:29:55 2010
@@ -30,10 +30,7 @@
import java.util.TimeZone;
import junit.framework.AssertionFailedError;
-import junit.framework.Test;
import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
import org.apache.commons.lang.SystemUtils;
@@ -87,15 +84,6 @@
super(name);
}
- public static void main(String[] args) {
- TestRunner.run(suite());
- }
-
- public static Test suite() {
- TestSuite suite = new TestSuite(DateUtilsTest.class);
- suite.setName("DateUtils Tests");
- return suite;
- }
protected void setUp() throws Exception {
super.setUp();
@@ -150,10 +138,6 @@
TimeZone.setDefault(defaultZone);
}
- protected void tearDown() throws Exception {
- super.tearDown();
- }
-
//-----------------------------------------------------------------------
public void testConstructor() {
assertNotNull(new DateUtils());
Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/time/DurationFormatUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/time/DurationFormatUtilsTest.java?rev=905628&r1=905627&r2=905628&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/time/DurationFormatUtilsTest.java (original)
+++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/time/DurationFormatUtilsTest.java Tue Feb 2 13:29:55 2010
@@ -22,10 +22,7 @@
import java.util.Calendar;
import java.util.TimeZone;
-import junit.framework.Test;
import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
/**
* TestCase for DurationFormatUtils.
@@ -38,16 +35,6 @@
*/
public class DurationFormatUtilsTest extends TestCase {
- public static void main(String[] args) {
- TestRunner.run(suite());
- }
-
- public static Test suite() {
- TestSuite suite = new TestSuite(DurationFormatUtilsTest.class);
- suite.setName("DurationFormatUtils Tests");
- return suite;
- }
-
public DurationFormatUtilsTest(String s) {
super(s);
}
Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/time/FastDateFormatTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/time/FastDateFormatTest.java?rev=905628&r1=905627&r2=905628&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/time/FastDateFormatTest.java (original)
+++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/time/FastDateFormatTest.java Tue Feb 2 13:29:55 2010
@@ -23,10 +23,7 @@
import java.util.Locale;
import java.util.TimeZone;
-import junit.framework.Test;
import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
import org.apache.commons.lang.SerializationUtils;
@@ -45,25 +42,6 @@
super(name);
}
- public static void main(String[] args) {
- TestRunner.run(suite());
- }
-
- public static Test suite() {
- TestSuite suite = new TestSuite(FastDateFormatTest.class);
- suite.setName("FastDateFormat Tests");
-
- return suite;
- }
-
- protected void setUp() throws Exception {
- super.setUp();
- }
-
- protected void tearDown() throws Exception {
- super.tearDown();
- }
-
public void test_getInstance() {
FastDateFormat format1 = FastDateFormat.getInstance();
FastDateFormat format2 = FastDateFormat.getInstance();
Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/time/StopWatchTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/time/StopWatchTest.java?rev=905628&r1=905627&r2=905628&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/time/StopWatchTest.java (original)
+++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/time/StopWatchTest.java Tue Feb 2 13:29:55 2010
@@ -17,10 +17,7 @@
package org.apache.commons.lang.time;
import junit.framework.Assert;
-import junit.framework.Test;
import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
/**
* TestCase for StopWatch.
@@ -30,16 +27,6 @@
*/
public class StopWatchTest extends TestCase {
- public static void main(String[] args) {
- TestRunner.run(suite());
- }
-
- public static Test suite() {
- TestSuite suite = new TestSuite(StopWatchTest.class);
- suite.setName("StopWatch Tests");
- return suite;
- }
-
public StopWatchTest(String s) {
super(s);
}