From 59de6795f74271f526c9124820a52e94702d22b3 Mon Sep 17 00:00:00 2001 From: Henri Yandell Date: Tue, 15 Sep 2009 05:57:22 +0000 Subject: [PATCH] Merging from -r468106:814127 of collections_jdk5_branch - namely where this code was generified; mostly in r738956. Also see the following revisions: ------------------------------------------------------------------------ r571381 | skestle | 2007-08-30 22:13:56 -0700 (Thu, 30 Aug 2007) | 1 line Generified LazyMap ------------------------------------------------------------------------ git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@815124 13f79535-47bb-0310-9956-ffa450edef68 --- .../commons/collections/map/TestAll.java | 83 ++++++++----------- 1 file changed, 36 insertions(+), 47 deletions(-) diff --git a/src/test/org/apache/commons/collections/map/TestAll.java b/src/test/org/apache/commons/collections/map/TestAll.java index c7b576e6d..91f070b5c 100644 --- a/src/test/org/apache/commons/collections/map/TestAll.java +++ b/src/test/org/apache/commons/collections/map/TestAll.java @@ -16,9 +16,11 @@ */ package org.apache.commons.collections.map; -import junit.framework.Test; import junit.framework.TestCase; -import junit.framework.TestSuite; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; /** * Entry point for tests. @@ -27,51 +29,38 @@ import junit.framework.TestSuite; * @version $Revision$ $Date$ * * @author Stephen Colebourne + * @author Stephen Kestle */ +@RunWith(Suite.class) +@SuiteClasses({ + TestCaseInsensitiveMap.class, + TestCompositeMap.class, + TestDefaultedMap.class, + TestFlat3Map.class, + TestHashedMap.class, + TestIdentityMap.class, + TestLinkedMap.class, + TestLRUMap.class, + TestMultiKeyMap.class, + TestReferenceMap.class, + TestReferenceIdentityMap.class, + TestStaticBucketMap.class, + TestSingletonMap.class, + + TestFixedSizeMap.class, + TestFixedSizeSortedMap.class, + TestLazyMap.class, + TestLazySortedMap.class, + TestListOrderedMap.class, + TestListOrderedMap2.class, + TestMultiValueMap.class, + TestPredicatedMap.class, + TestPredicatedSortedMap.class, + TestTransformedMap.class, + TestTransformedSortedMap.class, + TestUnmodifiableMap.class, + TestUnmodifiableOrderedMap.class, + TestUnmodifiableSortedMap.class +}) public class TestAll extends TestCase { - - public TestAll(String testName) { - super(testName); - } - - public static void main(String args[]) { - String[] testCaseName = { TestAll.class.getName() }; - junit.textui.TestRunner.main(testCaseName); - } - - public static Test suite() { - TestSuite suite = new TestSuite(); - - suite.addTest(TestCaseInsensitiveMap.suite()); - suite.addTest(TestCompositeMap.suite()); - suite.addTest(TestDefaultedMap.suite()); - suite.addTest(TestFlat3Map.suite()); - suite.addTest(TestHashedMap.suite()); - suite.addTest(TestIdentityMap.suite()); - suite.addTest(TestLinkedMap.suite()); - suite.addTest(TestLRUMap.suite()); - suite.addTest(TestMultiKeyMap.suite()); - suite.addTest(TestReferenceMap.suite()); - suite.addTest(TestReferenceIdentityMap.suite()); - suite.addTest(TestStaticBucketMap.suite()); - suite.addTest(TestSingletonMap.suite()); - - suite.addTest(TestFixedSizeMap.suite()); - suite.addTest(TestFixedSizeSortedMap.suite()); - suite.addTest(TestLazyMap.suite()); - suite.addTest(TestLazySortedMap.suite()); - suite.addTest(TestListOrderedMap.suite()); - suite.addTest(TestListOrderedMap2.suite()); - suite.addTest(TestMultiValueMap.suite()); - suite.addTest(TestPredicatedMap.suite()); - suite.addTest(TestPredicatedSortedMap.suite()); - suite.addTest(TestTransformedMap.suite()); - suite.addTest(TestTransformedSortedMap.suite()); - suite.addTest(TestUnmodifiableMap.suite()); - suite.addTest(TestUnmodifiableOrderedMap.suite()); - suite.addTest(TestUnmodifiableSortedMap.suite()); - - return suite; - } - }