From 49452d65050f5a55d165e5bc3dc1894045968994 Mon Sep 17 00:00:00 2001 From: Emmanuel Bourg Date: Mon, 11 Nov 2013 13:22:32 +0000 Subject: [PATCH] Removed the obsolete test constructors git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1540705 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/commons/collections4/ClosureUtilsTest.java | 7 ------- .../apache/commons/collections4/FactoryUtilsTest.java | 7 ------- .../commons/collections4/TransformerUtilsTest.java | 7 ------- .../collections4/iterators/FilterListIteratorTest.java | 3 --- .../collections4/iterators/LoopingIteratorTest.java | 4 ---- .../iterators/LoopingListIteratorTest.java | 4 ---- .../collections4/keyvalue/AbstractMapEntryTest.java | 9 --------- .../collections4/keyvalue/DefaultKeyValueTest.java | 10 ---------- .../collections4/keyvalue/DefaultMapEntryTest.java | 4 ---- .../commons/collections4/keyvalue/MultiKeyTest.java | 4 ---- .../collections4/keyvalue/TiedMapEntryTest.java | 4 ---- .../keyvalue/UnmodifiableMapEntryTest.java | 4 ---- 12 files changed, 67 deletions(-) diff --git a/src/test/java/org/apache/commons/collections4/ClosureUtilsTest.java b/src/test/java/org/apache/commons/collections4/ClosureUtilsTest.java index ff331fdd0..1cce6fd0b 100644 --- a/src/test/java/org/apache/commons/collections4/ClosureUtilsTest.java +++ b/src/test/java/org/apache/commons/collections4/ClosureUtilsTest.java @@ -40,13 +40,6 @@ public class ClosureUtilsTest extends TestCase { private static final Object cString = "Hello"; - /** - * Construct - */ - public ClosureUtilsTest(final String name) { - super(name); - } - static class MockClosure implements Closure { int count = 0; diff --git a/src/test/java/org/apache/commons/collections4/FactoryUtilsTest.java b/src/test/java/org/apache/commons/collections4/FactoryUtilsTest.java index 34d9f3a1c..08930796d 100644 --- a/src/test/java/org/apache/commons/collections4/FactoryUtilsTest.java +++ b/src/test/java/org/apache/commons/collections4/FactoryUtilsTest.java @@ -38,13 +38,6 @@ import org.junit.Test; */ public class FactoryUtilsTest extends junit.framework.TestCase { - /** - * Construct - */ - public FactoryUtilsTest(final String name) { - super(name); - } - /** * Set up instance variables required by this test case. */ diff --git a/src/test/java/org/apache/commons/collections4/TransformerUtilsTest.java b/src/test/java/org/apache/commons/collections4/TransformerUtilsTest.java index d366f4cce..81bd87c24 100644 --- a/src/test/java/org/apache/commons/collections4/TransformerUtilsTest.java +++ b/src/test/java/org/apache/commons/collections4/TransformerUtilsTest.java @@ -45,13 +45,6 @@ public class TransformerUtilsTest extends junit.framework.TestCase { private static final Object cString = "Hello"; private static final Object cInteger = Integer.valueOf(6); - /** - * Construct - */ - public TransformerUtilsTest(final String name) { - super(name); - } - /** * Set up instance variables required by this test case. */ diff --git a/src/test/java/org/apache/commons/collections4/iterators/FilterListIteratorTest.java b/src/test/java/org/apache/commons/collections4/iterators/FilterListIteratorTest.java index de239c771..8ad948062 100644 --- a/src/test/java/org/apache/commons/collections4/iterators/FilterListIteratorTest.java +++ b/src/test/java/org/apache/commons/collections4/iterators/FilterListIteratorTest.java @@ -35,9 +35,6 @@ import org.junit.Assert; */ @SuppressWarnings("boxing") public class FilterListIteratorTest extends TestCase { - public FilterListIteratorTest(final String testName) { - super(testName); - } private ArrayList list = null; private ArrayList odds = null; diff --git a/src/test/java/org/apache/commons/collections4/iterators/LoopingIteratorTest.java b/src/test/java/org/apache/commons/collections4/iterators/LoopingIteratorTest.java index 1095dd938..c0ef1199a 100644 --- a/src/test/java/org/apache/commons/collections4/iterators/LoopingIteratorTest.java +++ b/src/test/java/org/apache/commons/collections4/iterators/LoopingIteratorTest.java @@ -30,10 +30,6 @@ import junit.framework.TestCase; */ public class LoopingIteratorTest extends TestCase { - public LoopingIteratorTest(final String testName) { - super(testName); - } - /** * Tests constructor exception. */ diff --git a/src/test/java/org/apache/commons/collections4/iterators/LoopingListIteratorTest.java b/src/test/java/org/apache/commons/collections4/iterators/LoopingListIteratorTest.java index 1a1d1e94b..2789e8452 100644 --- a/src/test/java/org/apache/commons/collections4/iterators/LoopingListIteratorTest.java +++ b/src/test/java/org/apache/commons/collections4/iterators/LoopingListIteratorTest.java @@ -30,10 +30,6 @@ import junit.framework.TestCase; */ public class LoopingListIteratorTest extends TestCase { - public LoopingListIteratorTest(final String testName) { - super(testName); - } - /** * Tests constructor exception. */ diff --git a/src/test/java/org/apache/commons/collections4/keyvalue/AbstractMapEntryTest.java b/src/test/java/org/apache/commons/collections4/keyvalue/AbstractMapEntryTest.java index 69cc06bf6..9bdf5f2cb 100644 --- a/src/test/java/org/apache/commons/collections4/keyvalue/AbstractMapEntryTest.java +++ b/src/test/java/org/apache/commons/collections4/keyvalue/AbstractMapEntryTest.java @@ -36,15 +36,6 @@ public abstract class AbstractMapEntryTest extends TestCase { protected final String key = "name"; protected final String value = "duke"; - /** - * JUnit constructor. - * - * @param testName the test name - */ - public AbstractMapEntryTest(final String testName) { - super(testName); - } - //----------------------------------------------------------------------- /** * Make an instance of Map.Entry with the default (null) key and value. diff --git a/src/test/java/org/apache/commons/collections4/keyvalue/DefaultKeyValueTest.java b/src/test/java/org/apache/commons/collections4/keyvalue/DefaultKeyValueTest.java index f9222f0f4..67dacf761 100644 --- a/src/test/java/org/apache/commons/collections4/keyvalue/DefaultKeyValueTest.java +++ b/src/test/java/org/apache/commons/collections4/keyvalue/DefaultKeyValueTest.java @@ -32,16 +32,6 @@ public class DefaultKeyValueTest extends TestCase { private final String key = "name"; private final String value = "duke"; - /** - * JUnit constructor. - * - * @param testName the test name - */ - public DefaultKeyValueTest(final String testName) { - super(testName); - - } - //----------------------------------------------------------------------- /** * Make an instance of DefaultKeyValue with the default (null) key and value. diff --git a/src/test/java/org/apache/commons/collections4/keyvalue/DefaultMapEntryTest.java b/src/test/java/org/apache/commons/collections4/keyvalue/DefaultMapEntryTest.java index 1eac84390..fdc8d6e91 100644 --- a/src/test/java/org/apache/commons/collections4/keyvalue/DefaultMapEntryTest.java +++ b/src/test/java/org/apache/commons/collections4/keyvalue/DefaultMapEntryTest.java @@ -28,10 +28,6 @@ import org.apache.commons.collections4.KeyValue; */ public class DefaultMapEntryTest extends AbstractMapEntryTest { - public DefaultMapEntryTest(final String testName) { - super(testName); - } - //----------------------------------------------------------------------- /** * Make an instance of Map.Entry with the default (null) key and value. diff --git a/src/test/java/org/apache/commons/collections4/keyvalue/MultiKeyTest.java b/src/test/java/org/apache/commons/collections4/keyvalue/MultiKeyTest.java index 1cac2c0f7..2e1cc68e9 100644 --- a/src/test/java/org/apache/commons/collections4/keyvalue/MultiKeyTest.java +++ b/src/test/java/org/apache/commons/collections4/keyvalue/MultiKeyTest.java @@ -41,10 +41,6 @@ public class MultiKeyTest extends TestCase { Integer FOUR = Integer.valueOf(4); Integer FIVE = Integer.valueOf(5); - public MultiKeyTest(final String name) { - super(name); - } - @Override public void setUp() throws Exception { super.setUp(); diff --git a/src/test/java/org/apache/commons/collections4/keyvalue/TiedMapEntryTest.java b/src/test/java/org/apache/commons/collections4/keyvalue/TiedMapEntryTest.java index 251b168aa..9c5187b5a 100644 --- a/src/test/java/org/apache/commons/collections4/keyvalue/TiedMapEntryTest.java +++ b/src/test/java/org/apache/commons/collections4/keyvalue/TiedMapEntryTest.java @@ -27,10 +27,6 @@ import java.util.Map; */ public class TiedMapEntryTest extends AbstractMapEntryTest { - public TiedMapEntryTest(final String testName) { - super(testName); - } - //----------------------------------------------------------------------- /** * Gets the instance to test diff --git a/src/test/java/org/apache/commons/collections4/keyvalue/UnmodifiableMapEntryTest.java b/src/test/java/org/apache/commons/collections4/keyvalue/UnmodifiableMapEntryTest.java index f69220a54..aee874cad 100644 --- a/src/test/java/org/apache/commons/collections4/keyvalue/UnmodifiableMapEntryTest.java +++ b/src/test/java/org/apache/commons/collections4/keyvalue/UnmodifiableMapEntryTest.java @@ -29,10 +29,6 @@ import org.apache.commons.collections4.Unmodifiable; */ public class UnmodifiableMapEntryTest extends AbstractMapEntryTest { - public UnmodifiableMapEntryTest(final String testName) { - super(testName); - } - //----------------------------------------------------------------------- /** * Make an instance of Map.Entry with the default (null) key and value.