cvs commit: jakarta-commons/collections/src/test/org/apache/commons/collections TestAll.java
scolebourne2003/09/20 09:58:19 Modified:collections/src/test/org/apache/commons/collections TestAll.java Log: Make tests alphabetical and grouped Revision ChangesPath 1.47 +15 -14 jakarta-commons/collections/src/test/org/apache/commons/collections/TestAll.java Index: TestAll.java === RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestAll.java,v retrieving revision 1.46 retrieving revision 1.47 diff -u -r1.46 -r1.47 --- TestAll.java 20 Sep 2003 02:51:50 - 1.46 +++ TestAll.java 20 Sep 2003 16:58:19 - 1.47 @@ -76,23 +76,27 @@ public static Test suite() { TestSuite suite = new TestSuite(); +suite.addTest(TestBagUtils.suite()); +suite.addTest(TestClosureUtils.suite()); +suite.addTest(TestCollectionUtils.suite()); +suite.addTest(TestBufferUtils.suite()); +suite.addTest(TestFactoryUtils.suite()); +suite.addTest(TestListUtils.suite()); +suite.addTest(TestMapUtils.suite()); +suite.addTest(TestPredicateUtils.suite()); +suite.addTest(TestSetUtils.suite()); +suite.addTest(TestTransformerUtils.suite()); + suite.addTest(TestArrayStack.suite()); suite.addTest(TestBeanMap.suite()); suite.addTest(TestBinaryHeap.suite()); suite.addTest(TestBoundedFifoBuffer.suite()); suite.addTest(TestBoundedFifoBuffer2.suite()); suite.addTest(TestCircularFifoBuffer.suite()); -suite.addTest(TestClosureUtils.suite()); -suite.addTest(TestCollectionUtils.suite()); suite.addTest(TestCommonsLinkedList.suite()); -suite.addTest(TestBufferUtils.suite()); -suite.addTest(TestSetUtils.suite()); -suite.addTest(TestListUtils.suite()); -suite.addTest(TestMapUtils.suite()); suite.addTest(TestCursorableLinkedList.suite()); suite.addTest(TestDoubleOrderedMap.suite()); suite.addTest(TestExtendedProperties.suite()); -suite.addTest(TestFactoryUtils.suite()); suite.addTest(TestFastArrayList.suite()); suite.addTest(TestFastArrayList1.suite()); suite.addTest(TestFastHashMap.suite()); @@ -100,19 +104,16 @@ suite.addTest(TestFastTreeMap.suite()); suite.addTest(TestFastTreeMap1.suite()); suite.addTest(TestHashBag.suite()); +suite.addTest(TestIteratorUtils.suite()); suite.addTest(TestLRUMap.suite()); suite.addTest(TestMultiHashMap.suite()); suite.addTest(TestMultiKey.suite()); suite.addTest(TestNodeCachingLinkedList.suite()); -suite.addTest(TestPredicateUtils.suite()); +suite.addTest(TestReferenceMap.suite()); suite.addTest(TestSequencedHashMap.suite()); suite.addTest(TestStaticBucketMap.suite()); -suite.addTest(TestTransformerUtils.suite()); suite.addTest(TestTreeBag.suite()); suite.addTest(TestUnboundedFifoBuffer.suite()); -suite.addTest(TestReferenceMap.suite()); -suite.addTest(TestIteratorUtils.suite()); -suite.addTest(TestBagUtils.suite()); return suite; } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-commons/collections/src/test/org/apache/commons/collections TestAll.java
scolebourne2002/10/15 14:51:22 Modified:collections/src/test/org/apache/commons/collections TestAll.java Log: Delay primitives to 2.2 release Revision ChangesPath 1.36 +5 -5 jakarta-commons/collections/src/test/org/apache/commons/collections/TestAll.java Index: TestAll.java === RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestAll.java,v retrieving revision 1.35 retrieving revision 1.36 diff -u -r1.35 -r1.36 --- TestAll.java 12 Oct 2002 22:35:37 - 1.35 +++ TestAll.java 15 Oct 2002 21:51:21 - 1.36 @@ -105,7 +105,7 @@ suite.addTest(TestIteratorUtils.suite()); suite.addTest(org.apache.commons.collections.comparators.TestAll.suite()); suite.addTest(org.apache.commons.collections.iterators.TestAll.suite()); -suite.addTest(org.apache.commons.collections.primitives.TestAll.suite()); +//suite.addTest(org.apache.commons.collections.primitives.TestAll.suite()); return suite; } -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-commons/collections/src/test/org/apache/commons/collections TestAll.java
morgand 02/04/10 09:33:23 Modified:collections/src/test/org/apache/commons/collections TestAll.java Log: new tests Revision ChangesPath 1.25 +7 -4 jakarta-commons/collections/src/test/org/apache/commons/collections/TestAll.java Index: TestAll.java === RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestAll.java,v retrieving revision 1.24 retrieving revision 1.25 diff -u -r1.24 -r1.25 --- TestAll.java 19 Mar 2002 04:34:18 - 1.24 +++ TestAll.java 10 Apr 2002 16:33:23 - 1.25 @@ -1,7 +1,7 @@ /* - * $Header: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestAll.java,v 1.24 2002/03/19 04:34:18 mas Exp $ - * $Revision: 1.24 $ - * $Date: 2002/03/19 04:34:18 $ + * $Header: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestAll.java,v 1.25 2002/04/10 16:33:23 morgand Exp $ + * $Revision: 1.25 $ + * $Date: 2002/04/10 16:33:23 $ * * * @@ -67,7 +67,7 @@ /** * Entry point for all Collections tests. * @author Rodney Waldhoff - * @version $Id: TestAll.java,v 1.24 2002/03/19 04:34:18 mas Exp $ + * @version $Id: TestAll.java,v 1.25 2002/04/10 16:33:23 morgand Exp $ */ public class TestAll extends TestCase { public TestAll(String testName) { @@ -96,12 +96,15 @@ suite.addTest(TestFilterIterator.suite()); suite.addTest(TestFilterListIterator.suite()); suite.addTest(TestHashBag.suite()); +suite.addTest(TestIteratorChain.suite()); +suite.addTest(TestListIteratorWrapper.suite()); suite.addTest(TestLRUMap.suite()); suite.addTest(TestMultiHashMap.suite()); suite.addTest(TestReverseComparator.suite()); suite.addTest(TestSequencedHashMap.suite()); suite.addTest(TestSingletonIterator.suite()); suite.addTest(TestTreeBag.suite()); +suite.addTest(TestUniqueFilterIterator.suite()); return suite; } -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-commons/collections/src/test/org/apache/commons/collections TestAll.java TestArrayList.java TestArrayStack.java TestCursorableLinkedList.java TestFastArrayList.java TestList.java
morgand 02/02/26 12:23:10 Modified:collections/src/test/org/apache/commons/collections Tag: collections_1_x_branch TestAll.java TestArrayList.java TestArrayStack.java TestCursorableLinkedList.java TestFastArrayList.java TestList.java Log: merged with HEAD Revision ChangesPath No revision No revision 1.15.2.4 +4 -5 jakarta-commons/collections/src/test/org/apache/commons/collections/TestAll.java Index: TestAll.java === RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestAll.java,v retrieving revision 1.15.2.3 retrieving revision 1.15.2.4 diff -u -r1.15.2.3 -r1.15.2.4 --- TestAll.java 26 Feb 2002 06:17:51 - 1.15.2.3 +++ TestAll.java 26 Feb 2002 20:23:10 - 1.15.2.4 @@ -1,7 +1,7 @@ /* - * $Header: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestAll.java,v 1.15.2.3 2002/02/26 06:17:51 morgand Exp $ - * $Revision: 1.15.2.3 $ - * $Date: 2002/02/26 06:17:51 $ + * $Header: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestAll.java,v 1.15.2.4 2002/02/26 20:23:10 morgand Exp $ + * $Revision: 1.15.2.4 $ + * $Date: 2002/02/26 20:23:10 $ * * * @@ -66,7 +66,7 @@ /** * Entry point for all Collections tests. * @author Rodney Waldhoff - * @version $Id: TestAll.java,v 1.15.2.3 2002/02/26 06:17:51 morgand Exp $ + * @version $Id: TestAll.java,v 1.15.2.4 2002/02/26 20:23:10 morgand Exp $ */ public class TestAll extends TestCase { public TestAll(String testName) { @@ -76,7 +76,6 @@ public static Test suite() { TestSuite suite = new TestSuite(); suite.addTest(TestArrayIterator.suite()); -suite.addTest(TestArrayList.suite()); suite.addTest(TestArrayStack.suite()); suite.addTest(TestCollectionUtils.suite()); suite.addTest(TestCursorableLinkedList.suite()); 1.2.2.1 +6 -12 jakarta-commons/collections/src/test/org/apache/commons/collections/TestArrayList.java Index: TestArrayList.java === RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestArrayList.java,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -u -r1.2 -r1.2.2.1 --- TestArrayList.java14 Jul 2001 23:33:26 - 1.2 +++ TestArrayList.java26 Feb 2002 20:23:10 - 1.2.2.1 @@ -1,7 +1,7 @@ /* - * $Header: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestArrayList.java,v 1.2 2001/07/14 23:33:26 craigmcc Exp $ - * $Revision: 1.2 $ - * $Date: 2001/07/14 23:33:26 $ + * $Header: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestArrayList.java,v 1.2.2.1 2002/02/26 20:23:10 morgand Exp $ + * $Revision: 1.2.2.1 $ + * $Date: 2002/02/26 20:23:10 $ * * * @@ -69,9 +69,9 @@ /** * @author a href=mailto:[EMAIL PROTECTED];Jason van Zyl/a - * @version $Id: TestArrayList.java,v 1.2 2001/07/14 23:33:26 craigmcc Exp $ + * @version $Id: TestArrayList.java,v 1.2.2.1 2002/02/26 20:23:10 morgand Exp $ */ -public class TestArrayList extends TestList +public abstract class TestArrayList extends TestList { public TestArrayList(String testName) { @@ -93,13 +93,7 @@ public void setUp() { -list = (ArrayList) makeList(); -} - -public List makeList() -{ -ArrayList al = new ArrayList(); -return (al); +list = (ArrayList) makeEmptyList(); } public void testNewArrayList() 1.5.2.1 +6 -6 jakarta-commons/collections/src/test/org/apache/commons/collections/TestArrayStack.java Index: TestArrayStack.java === RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestArrayStack.java,v retrieving revision 1.5 retrieving revision 1.5.2.1 diff -u -r1.5 -r1.5.2.1 --- TestArrayStack.java 14 Jul 2001 23:33:26 - 1.5 +++ TestArrayStack.java 26 Feb 2002 20:23:10 - 1.5.2.1 @@ -1,7 +1,7 @@ /* - * $Header: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestArrayStack.java,v 1.5 2001/07/14 23:33:26 craigmcc Exp $ - * $Revision: 1.5 $ - * $Date: 2001/07/14 23:33:26 $ + * $Header:
cvs commit: jakarta-commons/collections/src/test/org/apache/commons/collections TestAll.java
morgand 02/02/25 15:15:29 Modified:collections/src/test/org/apache/commons/collections TestAll.java Log: was missing TestFilterIterator Revision ChangesPath 1.17 +5 -4 jakarta-commons/collections/src/test/org/apache/commons/collections/TestAll.java Index: TestAll.java === RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestAll.java,v retrieving revision 1.16 retrieving revision 1.17 diff -u -r1.16 -r1.17 --- TestAll.java 20 Feb 2002 23:33:23 - 1.16 +++ TestAll.java 25 Feb 2002 23:15:29 - 1.17 @@ -1,7 +1,7 @@ /* - * $Header: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestAll.java,v 1.16 2002/02/20 23:33:23 morgand Exp $ - * $Revision: 1.16 $ - * $Date: 2002/02/20 23:33:23 $ + * $Header: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestAll.java,v 1.17 2002/02/25 23:15:29 morgand Exp $ + * $Revision: 1.17 $ + * $Date: 2002/02/25 23:15:29 $ * * * @@ -66,7 +66,7 @@ /** * Entry point for all Collections tests. * @author Rodney Waldhoff - * @version $Id: TestAll.java,v 1.16 2002/02/20 23:33:23 morgand Exp $ + * @version $Id: TestAll.java,v 1.17 2002/02/25 23:15:29 morgand Exp $ */ public class TestAll extends TestCase { public TestAll(String testName) { @@ -90,6 +90,7 @@ suite.addTest(TestFastHashMap1.suite()); suite.addTest(TestFastTreeMap.suite()); suite.addTest(TestFastTreeMap1.suite()); +suite.addTest(TestFilterIterator.suite()); suite.addTest(TestHashBag.suite()); suite.addTest(TestHashMap.suite()); suite.addTest(TestLRUMap.suite()); -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-commons/collections/src/test/org/apache/commons/collections TestAll.java
morgand 02/02/25 16:17:24 Modified:collections/src/test/org/apache/commons/collections TestAll.java Log: took out test cases that ran against JDK classes directly Revision ChangesPath 1.19 +4 -6 jakarta-commons/collections/src/test/org/apache/commons/collections/TestAll.java Index: TestAll.java === RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestAll.java,v retrieving revision 1.18 retrieving revision 1.19 diff -u -r1.18 -r1.19 --- TestAll.java 25 Feb 2002 23:53:20 - 1.18 +++ TestAll.java 26 Feb 2002 00:17:24 - 1.19 @@ -1,7 +1,7 @@ /* - * $Header: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestAll.java,v 1.18 2002/02/25 23:53:20 rwaldhoff Exp $ - * $Revision: 1.18 $ - * $Date: 2002/02/25 23:53:20 $ + * $Header: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestAll.java,v 1.19 2002/02/26 00:17:24 morgand Exp $ + * $Revision: 1.19 $ + * $Date: 2002/02/26 00:17:24 $ * * * @@ -66,7 +66,7 @@ /** * Entry point for all Collections tests. * @author Rodney Waldhoff - * @version $Id: TestAll.java,v 1.18 2002/02/25 23:53:20 rwaldhoff Exp $ + * @version $Id: TestAll.java,v 1.19 2002/02/26 00:17:24 morgand Exp $ */ public class TestAll extends TestCase { public TestAll(String testName) { @@ -93,13 +93,11 @@ suite.addTest(TestFilterIterator.suite()); suite.addTest(TestFilterListIterator.suite()); suite.addTest(TestHashBag.suite()); -suite.addTest(TestHashMap.suite()); suite.addTest(TestLRUMap.suite()); suite.addTest(TestMultiHashMap.suite()); suite.addTest(TestSequencedHashMap.suite()); suite.addTest(TestSingletonIterator.suite()); suite.addTest(TestTreeBag.suite()); -suite.addTest(TestTreeMap.suite()); return suite; } -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-commons/collections/src/test/org/apache/commons/collections TestAll.java
morgand 02/02/25 21:44:14 Modified:collections/src/test/org/apache/commons/collections Tag: collections_1_x_branch TestAll.java Log: remove test class, which was based on code never released in Collections 1.0 Revision ChangesPath No revision No revision 1.15.2.2 +4 -5 jakarta-commons/collections/src/test/org/apache/commons/collections/TestAll.java Index: TestAll.java === RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestAll.java,v retrieving revision 1.15.2.1 retrieving revision 1.15.2.2 diff -u -r1.15.2.1 -r1.15.2.2 --- TestAll.java 26 Feb 2002 00:58:29 - 1.15.2.1 +++ TestAll.java 26 Feb 2002 05:44:14 - 1.15.2.2 @@ -1,7 +1,7 @@ /* - * $Header: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestAll.java,v 1.15.2.1 2002/02/26 00:58:29 morgand Exp $ - * $Revision: 1.15.2.1 $ - * $Date: 2002/02/26 00:58:29 $ + * $Header: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestAll.java,v 1.15.2.2 2002/02/26 05:44:14 morgand Exp $ + * $Revision: 1.15.2.2 $ + * $Date: 2002/02/26 05:44:14 $ * * * @@ -66,7 +66,7 @@ /** * Entry point for all Collections tests. * @author Rodney Waldhoff - * @version $Id: TestAll.java,v 1.15.2.1 2002/02/26 00:58:29 morgand Exp $ + * @version $Id: TestAll.java,v 1.15.2.2 2002/02/26 05:44:14 morgand Exp $ */ public class TestAll extends TestCase { public TestAll(String testName) { @@ -76,7 +76,6 @@ public static Test suite() { TestSuite suite = new TestSuite(); suite.addTest(TestArrayIterator.suite()); -suite.addTest(TestArrayIterator2.suite()); suite.addTest(TestArrayList.suite()); suite.addTest(TestArrayStack.suite()); suite.addTest(TestCollectionUtils.suite()); -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-commons/collections/src/test/org/apache/commons/collections TestAll.java TestFastHashMap.java TestFastTreeMap.java TestHashMap.java TestLRUMap.java TestMap.java TestSoftRefHashMap.java TestTreeMap.java
morgand 02/02/25 22:17:52 Modified:collections/src/test/org/apache/commons/collections Tag: collections_1_x_branch TestAll.java TestFastHashMap.java TestFastTreeMap.java TestHashMap.java TestLRUMap.java TestMap.java TestSoftRefHashMap.java TestTreeMap.java Log: merged in test changed from the HEAD into collections 1.x branch Revision ChangesPath No revision No revision 1.15.2.3 +4 -6 jakarta-commons/collections/src/test/org/apache/commons/collections/TestAll.java Index: TestAll.java === RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestAll.java,v retrieving revision 1.15.2.2 retrieving revision 1.15.2.3 diff -u -r1.15.2.2 -r1.15.2.3 --- TestAll.java 26 Feb 2002 05:44:14 - 1.15.2.2 +++ TestAll.java 26 Feb 2002 06:17:51 - 1.15.2.3 @@ -1,7 +1,7 @@ /* - * $Header: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestAll.java,v 1.15.2.2 2002/02/26 05:44:14 morgand Exp $ - * $Revision: 1.15.2.2 $ - * $Date: 2002/02/26 05:44:14 $ + * $Header: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestAll.java,v 1.15.2.3 2002/02/26 06:17:51 morgand Exp $ + * $Revision: 1.15.2.3 $ + * $Date: 2002/02/26 06:17:51 $ * * * @@ -66,7 +66,7 @@ /** * Entry point for all Collections tests. * @author Rodney Waldhoff - * @version $Id: TestAll.java,v 1.15.2.2 2002/02/26 05:44:14 morgand Exp $ + * @version $Id: TestAll.java,v 1.15.2.3 2002/02/26 06:17:51 morgand Exp $ */ public class TestAll extends TestCase { public TestAll(String testName) { @@ -87,8 +87,6 @@ suite.addTest(TestFastHashMap1.suite()); suite.addTest(TestFastTreeMap.suite()); suite.addTest(TestFastTreeMap1.suite()); -suite.addTest(TestHashMap.suite()); -suite.addTest(TestTreeMap.suite()); suite.addTest(TestLRUMap.suite()); return suite; } 1.3.2.1 +6 -6 jakarta-commons/collections/src/test/org/apache/commons/collections/TestFastHashMap.java Index: TestFastHashMap.java === RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestFastHashMap.java,v retrieving revision 1.3 retrieving revision 1.3.2.1 diff -u -r1.3 -r1.3.2.1 --- TestFastHashMap.java 21 Apr 2001 12:22:30 - 1.3 +++ TestFastHashMap.java 26 Feb 2002 06:17:51 - 1.3.2.1 @@ -1,7 +1,7 @@ /* - * $Header: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestFastHashMap.java,v 1.3 2001/04/21 12:22:30 craigmcc Exp $ - * $Revision: 1.3 $ - * $Date: 2001/04/21 12:22:30 $ + * $Header: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestFastHashMap.java,v 1.3.2.1 2002/02/26 06:17:51 morgand Exp $ + * $Revision: 1.3.2.1 $ + * $Date: 2002/02/26 06:17:51 $ * * * @@ -69,7 +69,7 @@ /** * @author a href=mailto:[EMAIL PROTECTED];Jason van Zyl/a - * @version $Id: TestFastHashMap.java,v 1.3 2001/04/21 12:22:30 craigmcc Exp $ + * @version $Id: TestFastHashMap.java,v 1.3.2.1 2002/02/26 06:17:51 morgand Exp $ */ public class TestFastHashMap extends TestHashMap { @@ -89,7 +89,7 @@ junit.textui.TestRunner.main(testCaseName); } -public Map makeMap() { +public Map makeEmptyMap() { FastHashMap fhm = new FastHashMap(); fhm.setFast(false); return (fhm); @@ -97,7 +97,7 @@ public void setUp() { -map = (HashMap) makeMap(); +map = (HashMap) makeEmptyMap(); } } 1.3.2.1 +13 -6 jakarta-commons/collections/src/test/org/apache/commons/collections/TestFastTreeMap.java Index: TestFastTreeMap.java === RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestFastTreeMap.java,v retrieving revision 1.3 retrieving revision 1.3.2.1 diff -u -r1.3 -r1.3.2.1 --- TestFastTreeMap.java 21 Apr 2001 12:22:30 - 1.3 +++ TestFastTreeMap.java 26 Feb 2002 06:17:51 - 1.3.2.1 @@ -1,7 +1,7 @@ /* - * $Header: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestFastTreeMap.java,v 1.3 2001/04/21 12:22:30 craigmcc Exp $ - * $Revision: 1.3 $ - * $Date: 2001/04/21 12:22:30 $ + * $Header:
cvs commit: jakarta-commons/collections/src/test/org/apache/commons/collections TestAll.java TestLRUMap.java
morgand 02/02/13 12:59:12 Modified:collections/src/test/org/apache/commons/collections TestAll.java TestLRUMap.java Log: added unit test for LRUMap.removeLRU(), which needs fixing Revision ChangesPath 1.15 +5 -4 jakarta-commons/collections/src/test/org/apache/commons/collections/TestAll.java Index: TestAll.java === RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestAll.java,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- TestAll.java 20 Jan 2002 04:36:08 - 1.14 +++ TestAll.java 13 Feb 2002 20:59:12 - 1.15 @@ -1,7 +1,7 @@ /* - * $Header: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestAll.java,v 1.14 2002/01/20 04:36:08 craigmcc Exp $ - * $Revision: 1.14 $ - * $Date: 2002/01/20 04:36:08 $ + * $Header: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestAll.java,v 1.15 2002/02/13 20:59:12 morgand Exp $ + * $Revision: 1.15 $ + * $Date: 2002/02/13 20:59:12 $ * * * @@ -66,7 +66,7 @@ /** * Entry point for all Collections tests. * @author Rodney Waldhoff - * @version $Id: TestAll.java,v 1.14 2002/01/20 04:36:08 craigmcc Exp $ + * @version $Id: TestAll.java,v 1.15 2002/02/13 20:59:12 morgand Exp $ */ public class TestAll extends TestCase { public TestAll(String testName) { @@ -96,6 +96,7 @@ suite.addTest(TestTreeBag.suite()); suite.addTest(TestTreeMap.suite()); suite.addTest(TestDoubleOrderedMap.suite()); +suite.addTest(TestLRUMap.suite()); return suite; } 1.2 +16 -4 jakarta-commons/collections/src/test/org/apache/commons/collections/TestLRUMap.java Index: TestLRUMap.java === RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestLRUMap.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- TestLRUMap.java 6 May 2001 11:10:36 - 1.1 +++ TestLRUMap.java 13 Feb 2002 20:59:12 - 1.2 @@ -1,7 +1,7 @@ /* - * $Header: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestLRUMap.java,v 1.1 2001/05/06 11:10:36 jstrachan Exp $ - * $Revision: 1.1 $ - * $Date: 2001/05/06 11:10:36 $ + * $Header: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestLRUMap.java,v 1.2 2002/02/13 20:59:12 morgand Exp $ + * $Revision: 1.2 $ + * $Date: 2002/02/13 20:59:12 $ * * * @@ -69,7 +69,7 @@ /** * @author a href=mailto:[EMAIL PROTECTED];James Strachan/a - * @version $Id: TestLRUMap.java,v 1.1 2001/05/06 11:10:36 jstrachan Exp $ + * @version $Id: TestLRUMap.java,v 1.2 2002/02/13 20:59:12 morgand Exp $ */ public class TestLRUMap extends TestHashMap { @@ -93,6 +93,18 @@ public void setUp() { map = (HashMap) makeMap(); +} + +public void testRemoveLRU() { +LRUMap map2 = new LRUMap(4); +map2.put(new Integer(1),foo); +map2.put(new Integer(2),foo); +map2.put(new Integer(3),foo); +map2.put(new Integer(4),foo); +map2.removeLRU(); // should be Integer(4) + +assertTrue(Second to last value should exist,map2.get(new Integer(3)).equals(foo)); +assertTrue(Last value inserted should not exist, map2.get(new Integer(4)) == null); } } -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]