Skip to content

Commit 4eea649

Browse files
committed
fix class-associations tests
1 parent 1d3a88b commit 4eea649

11 files changed

+27
-30
lines changed

class-associations/src/test/java/com/topcoder/util/classassociations/AllTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
*
3-
* Copyright © 2003, TopCoder, Inc. All rights reserved
3+
* Copyright 2003, TopCoder, Inc. All rights reserved
44
*/
55
package com.topcoder.util.classassociations;
66

class-associations/src/test/java/com/topcoder/util/classassociations/accuracytests/AccuracyTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
*
3-
* Copyright © 2003, TopCoder, Inc. All rights reserved
3+
* Copyright 2003, TopCoder, Inc. All rights reserved
44
*/
55
package com.topcoder.util.classassociations.accuracytests;
66

@@ -19,8 +19,8 @@ public class AccuracyTests extends TestCase {
1919

2020
public static Test suite() {
2121
final TestSuite suite = new TestSuite();
22-
suite.addTestSuite(ClassAssociatorAccuracyTests.class);
23-
suite.addTestSuite(DefaultAlgorithmAccuracyTests.class);
22+
suite.addTestSuite(ClassAssociatorAccuracyTest.class);
23+
suite.addTestSuite(DefaultAlgorithmAccuracyTest.class);
2424
return suite;
2525
}
2626

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
2-
* ClassAssociatorAccuracyTests.java vesion 1.0 Created on Apr 2, 2004
2+
* ClassAssociatorAccuracyTest.java vesion 1.0 Created on Apr 2, 2004
33
*
4-
* Copyright © 2004, TopCoder, Inc. All rights reserved
4+
* Copyright 2004, TopCoder, Inc. All rights reserved
55
* */
66
package com.topcoder.util.classassociations.accuracytests;
77

@@ -21,7 +21,7 @@ class Aaa { }
2121
class Bbb extends Aaa { }
2222
class Ccc extends Aaa { }
2323

24-
public class ClassAssociatorAccuracyTests extends TestCase {
24+
public class ClassAssociatorAccuracyTest extends TestCase {
2525
ClassAssociator ca = null;
2626
Aaa aa = null;
2727
Bbb bb = null;
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
2-
* DefaultAlgorithmAccuracyTests.java vesion 1.0 Created on Apr 2, 2004
2+
* DefaultAlgorithmAccuracyTest.java vesion 1.0 Created on Apr 2, 2004
33
*
4-
* Copyright © 2004, TopCoder, Inc. All rights reserved
4+
* Copyright 2004, TopCoder, Inc. All rights reserved
55
* */
66
package com.topcoder.util.classassociations.accuracytests;
77

@@ -24,7 +24,7 @@ class ABbb extends Aaaa implements Ib { }
2424
class ACcc extends Aaaa implements Ia { }
2525
class ACDdd extends ACcc {}
2626
class Eee {}
27-
public class DefaultAlgorithmAccuracyTests extends TestCase {
27+
public class DefaultAlgorithmAccuracyTest extends TestCase {
2828
ClassAssociator ca = null;
2929
Aaaa aa = null;
3030
ABbb bb = null;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* @author valeriy
2424
* @version 1.0
2525
*/
26-
public class ClassAssociatorTests extends TestCase {
26+
public class ClassAssociatorTest extends TestCase {
2727

2828
/**
2929
* Tests ClassAssociator(Map, Map) constructor with invalid parameters
@@ -576,7 +576,7 @@ public void testClassAssociatorGetAlgorithm() throws Exception {
576576
}
577577

578578
public static Test suite() {
579-
return new TestSuite(ClassAssociatorTests.class);
579+
return new TestSuite(ClassAssociatorTest.class);
580580
}
581581

582582
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* @author valeriy
2121
* @version 1.0
2222
*/
23-
public class DefaultAssociationAlgorithmTests extends TestCase {
23+
public class DefaultAssociationAlgorithmTest extends TestCase {
2424

2525
/**
2626
* Tests DefaultAssociationAlgorithm.retrieveHandler() method with invalid parameters
@@ -51,7 +51,7 @@ public void testDefaultAssociationAlgorithmRetrieveHandler() throws Exception {
5151
}
5252

5353
public static Test suite() {
54-
return new TestSuite(DefaultAssociationAlgorithmTests.class);
54+
return new TestSuite(DefaultAssociationAlgorithmTest.class);
5555
}
5656

5757
}

class-associations/src/test/java/com/topcoder/util/classassociations/failuretests/FailureTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
*
3-
* Copyright © 2003, TopCoder, Inc. All rights reserved
3+
* Copyright 2003, TopCoder, Inc. All rights reserved
44
*/
55
package com.topcoder.util.classassociations.failuretests;
66

@@ -18,9 +18,9 @@ public class FailureTests extends TestCase {
1818

1919
public static Test suite() {
2020
final TestSuite suite = new TestSuite();
21-
suite.addTest(IllegalHandlerExceptionTests.suite());
22-
suite.addTest(DefaultAssociationAlgorithmTests.suite());
23-
suite.addTest(ClassAssociatorTests.suite());
21+
suite.addTest(IllegalHandlerExceptionTest.suite());
22+
suite.addTest(DefaultAssociationAlgorithmTest.suite());
23+
suite.addTest(ClassAssociatorTest.suite());
2424
return suite;
2525
}
2626

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* @author valeriy
2020
* @version 1.0
2121
*/
22-
public class IllegalHandlerExceptionTests extends TestCase {
22+
public class IllegalHandlerExceptionTest extends TestCase {
2323

2424
/**
2525
* Tests IllegalHandlerException constructors with invalid parameters
@@ -35,7 +35,7 @@ public void testIllegalHandlerExceptionConstructor() throws Exception {
3535
}
3636

3737
public static Test suite() {
38-
return new TestSuite(IllegalHandlerExceptionTests.class);
38+
return new TestSuite(IllegalHandlerExceptionTest.class);
3939
}
4040

4141
}
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
*/
44
package com.topcoder.util.classassociations.stresstests;
55

6-
import junit.framework.Test;
76
import junit.framework.TestCase;
87
import junit.framework.TestSuite;
98
import com.topcoder.util.classassociations.*;
@@ -14,7 +13,7 @@
1413
* @author garyk
1514
* @version 1.0
1615
*/
17-
public class RetrieveClassHandlerStressTests extends TestCase {
16+
public class RetrieveClassHandlerStressTest extends TestCase {
1817
private static final int N = 20;
1918
private static final long TIME = 3000;
2019
private static Object[] objs;
@@ -32,7 +31,7 @@ public class RetrieveClassHandlerStressTests extends TestCase {
3231
* @return a test suite that contains all test methods in the class
3332
*/
3433
public static TestSuite suite() {
35-
return new TestSuite(RetrieveClassHandlerStressTests.class);
34+
return new TestSuite(RetrieveClassHandlerStressTest.class);
3635
}
3736

3837
/*
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
*/
44
package com.topcoder.util.classassociations.stresstests;
55

6-
import junit.framework.Test;
76
import junit.framework.TestCase;
87
import junit.framework.TestSuite;
98
import com.topcoder.util.classassociations.*;
@@ -14,7 +13,7 @@
1413
* @author garyk
1514
* @version 1.0
1615
*/
17-
public class RetrieveHandlerStressTests extends TestCase {
16+
public class RetrieveHandlerStressTest extends TestCase {
1817
private static final int N = 20;
1918
private static final long TIME = 3000;
2019
private static Object[] objs;
@@ -32,7 +31,7 @@ public class RetrieveHandlerStressTests extends TestCase {
3231
* @return a test suite that contains all test methods in the class
3332
*/
3433
public static TestSuite suite() {
35-
return new TestSuite(RetrieveHandlerStressTests.class);
34+
return new TestSuite(RetrieveHandlerStressTest.class);
3635
}
3736

3837
/*

class-associations/src/test/java/com/topcoder/util/classassociations/stresstests/StressTests.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
/**
22
*
3-
* Copyright © 2003, TopCoder, Inc. All rights reserved
3+
* Copyright 2003, TopCoder, Inc. All rights reserved
44
*/
55
package com.topcoder.util.classassociations.stresstests;
66

77
import junit.framework.Test;
88
import junit.framework.TestCase;
99
import junit.framework.TestSuite;
10-
import junit.framework.TestResult;
1110

1211
/**
1312
* <p>This test case aggregates all Stress test cases.</p>
@@ -20,8 +19,8 @@ public class StressTests extends TestCase {
2019
public static Test suite() {
2120
final TestSuite suite = new TestSuite();
2221

23-
suite.addTest(RetrieveHandlerStressTests.suite());
24-
suite.addTest(RetrieveClassHandlerStressTests.suite());
22+
suite.addTest(RetrieveHandlerStressTest.suite());
23+
suite.addTest(RetrieveClassHandlerStressTest.suite());
2524

2625
return suite;
2726
}

0 commit comments

Comments
 (0)