Skip to content

Commit 809fdb9

Browse files
committed
Remove legacy main() methods in tests
1 parent 919eee4 commit 809fdb9

21 files changed

+0
-188
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
import org.apache.commons.collections.map.AbstractTestMap;
2929

3030
import junit.framework.Test;
31-
import junit.textui.TestRunner;
3231

3332
/**
3433
* Test cases for BeanMap
@@ -156,10 +155,6 @@ public static class TestException extends RuntimeException {
156155
Also note: The sample keys and mappings were generated manually.
157156
*/
158157

159-
public static void main(final String[] args) {
160-
TestRunner.run(suite());
161-
}
162-
163158
public static Test suite() {
164159
return BulkTest.makeSuite(BeanMapTest.class);
165160
}

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,6 @@ public class DynaBeanMapDecoratorTest extends TestCase {
4949
private static Integer intVal = Integer.valueOf(5);
5050
private static Date dateVal = new Date();
5151
private static final Map<Object, Object> emptyMap = new DynaBeanMapDecorator(new BasicDynaBean(new BasicDynaClass()));
52-
53-
/**
54-
* Run thus Test
55-
*/
56-
public static void main(final String[] args) {
57-
junit.textui.TestRunner.run(suite());
58-
}
59-
6052
/**
6153
* Return the tests included in this test suite.
6254
*/

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,6 @@
3131
*
3232
*/
3333
public class LazyDynaBeanTest extends TestCase {
34-
35-
/**
36-
* Run thus Test
37-
*/
38-
public static void main(final String[] args) {
39-
junit.textui.TestRunner.run(suite());
40-
}
4134
/**
4235
* Return the tests included in this test suite.
4336
*/

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,6 @@
2525
*
2626
*/
2727
public class LazyDynaClassTest extends TestCase {
28-
29-
/**
30-
* Run this Test
31-
*/
32-
public static void main(final String[] args) {
33-
junit.textui.TestRunner.run(suite());
34-
}
3528
/**
3629
* Return the tests included in this test suite.
3730
*/

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,6 @@ public class LazyDynaListTest extends TestCase {
3838

3939
private static final String BASIC_PROP1 = "BasicDynaClass_Property1";
4040
private static final String BASIC_PROP2 = "BasicDynaClass_Property2";
41-
42-
/**
43-
* Run thus Test
44-
*/
45-
public static void main(final String[] args) {
46-
junit.textui.TestRunner.run(suite());
47-
}
48-
4941
/**
5042
* Return the tests included in this test suite.
5143
*/

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,6 @@
3333
*
3434
*/
3535
public class LazyDynaMapTest extends TestCase {
36-
37-
/**
38-
* Run thus Test
39-
*/
40-
public static void main(final String[] args) {
41-
junit.textui.TestRunner.run(suite());
42-
}
4336
/**
4437
* Return the tests included in this test suite.
4538
*/

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,6 @@
2525
*
2626
*/
2727
public class MappedPropertyTest extends TestCase {
28-
29-
/**
30-
* Run this Test
31-
*/
32-
public static void main(final String[] args) {
33-
junit.textui.TestRunner.run(suite());
34-
}
35-
3628
/**
3729
* Return the tests included in this test suite.
3830
*/

src/test/java/org/apache/commons/beanutils/bugs/Jira157Test.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,6 @@ public interface XY {
5858
String getX();
5959
String getY();
6060
}
61-
62-
/**
63-
* Run the Test.
64-
*
65-
* @param args Arguments
66-
*/
67-
public static void main(final String[] args) {
68-
junit.textui.TestRunner.run(suite());
69-
}
70-
7161
/**
7262
* Create a test suite for this test.
7363
*

src/test/java/org/apache/commons/beanutils/bugs/Jira18Test.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,6 @@
3333
* @see <a href="https://issues.apache.org/jira/browse/BEANUTILS-18">https://issues.apache.org/jira/browse/BEANUTILS-18</a>
3434
*/
3535
public class Jira18Test extends TestCase {
36-
37-
/**
38-
* Run the Test.
39-
*
40-
* @param args Arguments
41-
*/
42-
public static void main(final String[] args) {
43-
junit.textui.TestRunner.run(suite());
44-
}
4536
/**
4637
* Create a test suite for this test.
4738
*

src/test/java/org/apache/commons/beanutils/bugs/Jira273Test.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,6 @@
3232
* @see <a href="https://issues.apache.org/jira/browse/BEANUTILS-273">https://issues.apache.org/jira/browse/BEANUTILS-273</a>
3333
*/
3434
public class Jira273Test extends TestCase {
35-
36-
/**
37-
* Run the Test.
38-
*
39-
* @param args Arguments
40-
*/
41-
public static void main(final String[] args) {
42-
junit.textui.TestRunner.run(suite());
43-
}
44-
4535
/**
4636
* Create a test suite for this test.
4737
*

0 commit comments

Comments
 (0)