Skip to content

Commit 9f7e8bc

Browse files
committed
Remove legacy suite() methods in tests
Leave BeanMapTest as a to-do since it involves updating Commons Collections
1 parent 809fdb9 commit 9f7e8bc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+0
-623
lines changed

src/test/java/org/apache/commons/beanutils/BeanUtils2Test.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,11 @@
1616
*/
1717
package org.apache.commons.beanutils;
1818

19-
import junit.framework.Test;
20-
import junit.framework.TestSuite;
21-
2219
/**
2320
* Test Case for the {@link BeanUtilsBean2}.
2421
*
2522
*/
2623
public class BeanUtils2Test extends BeanUtilsTest {
27-
28-
/**
29-
* Return the tests included in this test suite.
30-
*/
31-
public static Test suite() {
32-
return new TestSuite(BeanUtils2Test.class);
33-
}
34-
3524
/**
3625
* Construct a new instance of this test case.
3726
*

src/test/java/org/apache/commons/beanutils/BeanUtilsBenchCase.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,14 @@
2121
import java.util.Iterator;
2222
import java.util.Map;
2323

24-
import junit.framework.Test;
2524
import junit.framework.TestCase;
26-
import junit.framework.TestSuite;
2725

2826
/**
2927
* JUnit Test Case containing microbenchmarks for BeanUtils.
3028
*
3129
*/
3230

3331
public class BeanUtilsBenchCase extends TestCase {
34-
35-
/**
36-
* Return the tests included in this test suite.
37-
*/
38-
public static Test suite() {
39-
40-
return new TestSuite(BeanUtilsBenchCase.class);
41-
42-
}
43-
4432
// Basic loop counter
4533
private long counter = 100000;
4634

src/test/java/org/apache/commons/beanutils/BeanUtilsTest.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@
2626
import org.apache.commons.beanutils.converters.ArrayConverter;
2727
import org.apache.commons.beanutils.converters.DateConverter;
2828

29-
import junit.framework.Test;
3029
import junit.framework.TestCase;
31-
import junit.framework.TestSuite;
3230

3331
/**
3432
* <p>
@@ -58,14 +56,6 @@
5856
*/
5957

6058
public class BeanUtilsTest extends TestCase {
61-
62-
/**
63-
* Return the tests included in this test suite.
64-
*/
65-
public static Test suite() {
66-
return new TestSuite(BeanUtilsTest.class);
67-
}
68-
6959
/**
7060
* The test bean for each test.
7161
*/

src/test/java/org/apache/commons/beanutils/BeanificationTest.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@
2424

2525
import org.apache.commons.logging.LogFactory;
2626

27-
import junit.framework.Test;
2827
import junit.framework.TestCase;
29-
import junit.framework.TestSuite;
3028

3129
/**
3230
* <p>
@@ -103,14 +101,6 @@ public String toString() {
103101

104102
/** Maximum number of iterations before our test fails */
105103
public static final int MAX_GC_ITERATIONS = 50;
106-
107-
/**
108-
* Return the tests included in this test suite.
109-
*/
110-
public static Test suite() {
111-
return new TestSuite(BeanificationTest.class);
112-
}
113-
114104
/**
115105
* Construct a new instance of this test case.
116106
*

src/test/java/org/apache/commons/beanutils/ConstructorUtilsTest.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,13 @@
2020
import java.lang.reflect.Constructor;
2121
import java.lang.reflect.Modifier;
2222

23-
import junit.framework.Test;
2423
import junit.framework.TestCase;
25-
import junit.framework.TestSuite;
2624

2725
/**
2826
* Tests {@link ConstructorUtils} </p>
2927
*/
3028
@SuppressWarnings("deprecation")
3129
public class ConstructorUtilsTest extends TestCase {
32-
33-
/**
34-
* Return the tests included in this test suite.
35-
*/
36-
public static Test suite() {
37-
return new TestSuite(ConstructorUtilsTest.class);
38-
}
39-
4030
/**
4131
* Construct a new instance of this test case.
4232
*

src/test/java/org/apache/commons/beanutils/ConvertUtilsTest.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,12 @@
2727

2828
import org.apache.commons.beanutils.converters.DateConverter;
2929

30-
import junit.framework.Test;
3130
import junit.framework.TestCase;
32-
import junit.framework.TestSuite;
3331

3432
/**
3533
* Test Case for the ConvertUtils class.
3634
*/
3735
public class ConvertUtilsTest extends TestCase {
38-
39-
/**
40-
* Return the tests included in this test suite.
41-
*/
42-
public static Test suite() {
43-
return new TestSuite(ConvertUtilsTest.class);
44-
}
45-
4636
/**
4737
* Construct a new instance of this test case.
4838
*

src/test/java/org/apache/commons/beanutils/DynaBeanMapDecoratorTest.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@
2525
import java.util.Map.Entry;
2626
import java.util.Set;
2727

28-
import junit.framework.Test;
2928
import junit.framework.TestCase;
30-
import junit.framework.TestSuite;
3129

3230
/**
3331
* <p>Test Case for the {@code DynaBeanMapDecorator} implementation class.</p>
@@ -49,12 +47,6 @@ public class DynaBeanMapDecoratorTest extends TestCase {
4947
private static Integer intVal = Integer.valueOf(5);
5048
private static Date dateVal = new Date();
5149
private static final Map<Object, Object> emptyMap = new DynaBeanMapDecorator(new BasicDynaBean(new BasicDynaClass()));
52-
/**
53-
* Return the tests included in this test suite.
54-
*/
55-
public static Test suite() {
56-
return new TestSuite(DynaBeanMapDecoratorTest.class);
57-
}
5850
private final Map<Object, Object> mapVal = new HashMap<>();
5951
private final Object[] values = {stringVal, null, intVal, dateVal, mapVal};
6052
private BasicDynaBean dynaBean;

src/test/java/org/apache/commons/beanutils/DynaBeanUtilsTest.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@
2323
import java.util.List;
2424
import java.util.Map;
2525

26-
import junit.framework.Test;
2726
import junit.framework.TestCase;
28-
import junit.framework.TestSuite;
2927

3028
/**
3129
* Test case for BeanUtils when the underlying bean is actually a DynaBean.
@@ -69,16 +67,6 @@ protected static DynaClass createDynaClass() {
6967
});
7068

7169
}
72-
73-
/**
74-
* Return the tests included in this test suite.
75-
*/
76-
public static Test suite() {
77-
78-
return new TestSuite(DynaBeanUtilsTest.class);
79-
80-
}
81-
8270
/**
8371
* The basic test bean for each test.
8472
*/

src/test/java/org/apache/commons/beanutils/DynaPropertyTest.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,13 @@
1818

1919
import java.util.Collection;
2020

21-
import junit.framework.Test;
2221
import junit.framework.TestCase;
23-
import junit.framework.TestSuite;
2422

2523
/**
2624
* Test case for {@link DynaProperty}.
2725
*
2826
*/
2927
public class DynaPropertyTest extends TestCase {
30-
31-
/**
32-
* Return the tests included in this test suite.
33-
* @return a test suite
34-
*/
35-
public static Test suite() {
36-
37-
return new TestSuite(DynaPropertyTest.class);
38-
39-
}
4028
private DynaProperty testPropertyWithName;
4129
private DynaProperty testProperty1Duplicate;
4230
private DynaProperty testPropertyWithNameAndType;

src/test/java/org/apache/commons/beanutils/DynaPropertyUtilsTest.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,26 +23,14 @@
2323
import java.util.List;
2424
import java.util.Map;
2525

26-
import junit.framework.Test;
2726
import junit.framework.TestCase;
28-
import junit.framework.TestSuite;
2927

3028
/**
3129
* Test accessing DynaBeans transparently via PropertyUtils.
3230
*
3331
*/
3432

3533
public class DynaPropertyUtilsTest extends TestCase {
36-
37-
/**
38-
* Return the tests included in this test suite.
39-
*/
40-
public static Test suite() {
41-
42-
return new TestSuite(DynaPropertyUtilsTest.class);
43-
44-
}
45-
4634
/**
4735
* The basic test bean for each test.
4836
*/

0 commit comments

Comments
 (0)