From fd398f99d8f72f3eacfbbd889a9dcf0c559dece1 Mon Sep 17 00:00:00 2001 From: "Gary D. Gregory" Date: Tue, 28 Oct 2003 18:56:12 +0000 Subject: [PATCH] Integrate TestEnumerationUtils into test suite. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131299 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/commons/collections/TestAll.java | 5 +++-- .../collections/TestEnumerationUtils.java | 16 ++++++++++++---- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/src/test/org/apache/commons/collections/TestAll.java b/src/test/org/apache/commons/collections/TestAll.java index 5a26fb363..6b40aedcd 100644 --- a/src/test/org/apache/commons/collections/TestAll.java +++ b/src/test/org/apache/commons/collections/TestAll.java @@ -1,5 +1,5 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestAll.java,v 1.50 2003/10/06 23:47:17 scolebourne Exp $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestAll.java,v 1.51 2003/10/28 18:56:12 ggregory Exp $ * ==================================================================== * * The Apache Software License, Version 1.1 @@ -64,7 +64,7 @@ import junit.framework.TestSuite; /** * Entry point for all Collections package tests. * - * @version $Revision: 1.50 $ $Date: 2003/10/06 23:47:17 $ + * @version $Revision: 1.51 $ $Date: 2003/10/28 18:56:12 $ * * @author Rodney Waldhoff * @author Stephen Colebourne @@ -115,6 +115,7 @@ public class TestAll extends TestCase { suite.addTest(TestStaticBucketMap.suite()); suite.addTest(TestTreeBag.suite()); suite.addTest(TestUnboundedFifoBuffer.suite()); + suite.addTest(TestEnumerationUtils.suite()); return suite; } diff --git a/src/test/org/apache/commons/collections/TestEnumerationUtils.java b/src/test/org/apache/commons/collections/TestEnumerationUtils.java index 2f3d3ce1e..79e5a3b25 100644 --- a/src/test/org/apache/commons/collections/TestEnumerationUtils.java +++ b/src/test/org/apache/commons/collections/TestEnumerationUtils.java @@ -1,5 +1,5 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestEnumerationUtils.java,v 1.1 2003/10/28 18:48:10 ggregory Exp $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestEnumerationUtils.java,v 1.2 2003/10/28 18:56:12 ggregory Exp $ * ==================================================================== * * The Apache Software License, Version 1.1 @@ -63,15 +63,19 @@ import java.util.List; import java.util.StringTokenizer; import junit.framework.Assert; -import junit.framework.TestCase; +import junit.framework.Test; /** * Tests EnumerationUtils. * * @author Gary Gregory - * @version $Id: TestEnumerationUtils.java,v 1.1 2003/10/28 18:48:10 ggregory Exp $ + * @version $Id: TestEnumerationUtils.java,v 1.2 2003/10/28 18:56:12 ggregory Exp $ */ -public class TestEnumerationUtils extends TestCase { +public class TestEnumerationUtils extends BulkTest { + + public TestEnumerationUtils(String name) { + super(name); + } public static final String TO_LIST_FIXTURE = "this is a test"; @@ -122,4 +126,8 @@ public class TestEnumerationUtils extends TestCase { Assert.assertTrue(actualKeyList.containsAll(expectedKeyList)); } + public static Test suite() { + return BulkTest.makeSuite(TestEnumerationUtils.class); + } + }