Commit Graph

961 Commits

Author SHA1 Message Date
Stephen Colebourne 2f1df4d36c Improve test error messages
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131266 13f79535-47bb-0310-9956-ffa450edef68
2003-10-09 20:20:23 +00:00
Stephen Colebourne 69d1866233 Rename testRemoveAfterAdd for consistency
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131265 13f79535-47bb-0310-9956-ffa450edef68
2003-10-09 20:18:25 +00:00
Rodney Waldhoff 8cb3e9821b deprecate
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131264 13f79535-47bb-0310-9956-ffa450edef68
2003-10-09 11:09:10 +00:00
Rodney Waldhoff 8a083ab8af * support remove in SingletonIterator and SingletonListIterator
* add tests
* enable tests


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131263 13f79535-47bb-0310-9956-ffa450edef68
2003-10-09 11:05:27 +00:00
Rodney Waldhoff 96e2ca244e rename _a/_b to collectionA/collectionB
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131262 13f79535-47bb-0310-9956-ffa450edef68
2003-10-09 11:03:55 +00:00
Rodney Waldhoff 7b2af5cff1 scope variables, group assertions into blocks
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131261 13f79535-47bb-0310-9956-ffa450edef68
2003-10-09 11:00:09 +00:00
Rodney Waldhoff 0f57fa8e8c fix test so that it doesn't assume the order in which elements are returned from a HashMap.iterator
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131260 13f79535-47bb-0310-9956-ffa450edef68
2003-10-09 10:48:19 +00:00
Rodney Waldhoff 8dbaeed44c convert "assertTrue(a.equals(b))" to the equivalent but better reported "assertEquals(a,b)"
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131259 13f79535-47bb-0310-9956-ffa450edef68
2003-10-09 10:39:16 +00:00
Rodney Waldhoff 4a1340c1d9 extract methods testRemoveThenSet and testAddThenSet, so we don't assume the full iterator contains more than one element
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131258 13f79535-47bb-0310-9956-ffa450edef68
2003-10-09 10:33:45 +00:00
Rodney Waldhoff 287d11999f deprecate
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131257 13f79535-47bb-0310-9956-ffa450edef68
2003-10-09 09:52:56 +00:00
Stephen Colebourne a18bc1ca43 Tighten Map tests
Javadoc


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131256 13f79535-47bb-0310-9956-ffa450edef68
2003-10-07 22:35:59 +00:00
Stephen Colebourne e7ea37d1a7 Enhance Map tests pre-release of testframework
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131255 13f79535-47bb-0310-9956-ffa450edef68
2003-10-07 22:20:58 +00:00
Stephen Colebourne b943acfc64 Rename HashBidiMap to DualHashBidiMap
Add AbstractDualBidiMap
Test and fix bugs


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131254 13f79535-47bb-0310-9956-ffa450edef68
2003-10-06 23:47:17 +00:00
Stephen Colebourne 8755bd9684 Add first semblance of some SortedMap tests
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131253 13f79535-47bb-0310-9956-ffa450edef68
2003-10-06 23:44:56 +00:00
Stephen Colebourne 3525c9cc59 Actually test the class we are supposed to be testing
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131252 13f79535-47bb-0310-9956-ffa450edef68
2003-10-06 23:44:23 +00:00
Stephen Colebourne 5f31d82006 Fix bug introduced when changing version from 2.2 to 3
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131251 13f79535-47bb-0310-9956-ffa450edef68
2003-10-06 21:03:52 +00:00
Phil Steitz 39f52a2f79 Added test for UnmodifiableMap, plugged small protection gap.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131250 13f79535-47bb-0310-9956-ffa450edef68
2003-10-06 05:06:05 +00:00
Stephen Colebourne 396286ea1e Update version numbers for next release
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131249 13f79535-47bb-0310-9956-ffa450edef68
2003-10-05 23:21:07 +00:00
Stephen Colebourne f05bc240ac Finish integration of testframework jar, with javadoc and validation build
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131248 13f79535-47bb-0310-9956-ffa450edef68
2003-10-05 23:12:15 +00:00
Stephen Colebourne 7b41504959 Add overview for testframework
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131247 13f79535-47bb-0310-9956-ffa450edef68
2003-10-05 23:11:00 +00:00
Stephen Colebourne 19d811d68e Javadoc fixes
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131246 13f79535-47bb-0310-9956-ffa450edef68
2003-10-05 23:10:31 +00:00
Stephen Colebourne 5dc2c46e26 Update licence and version
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131245 13f79535-47bb-0310-9956-ffa450edef68
2003-10-05 21:26:46 +00:00
Stephen Colebourne 2e1a8cb3f2 Update licence and version
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131244 13f79535-47bb-0310-9956-ffa450edef68
2003-10-05 21:17:40 +00:00
Stephen Colebourne 7621d6e135 Update licence and version
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131243 13f79535-47bb-0310-9956-ffa450edef68
2003-10-05 21:11:06 +00:00
Stephen Colebourne 96c2adf196 Update licence and version
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131242 13f79535-47bb-0310-9956-ffa450edef68
2003-10-05 21:03:44 +00:00
Stephen Colebourne 0672fd080f Add tests to BidiMap and make part of main test suite
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131241 13f79535-47bb-0310-9956-ffa450edef68
2003-10-05 20:52:29 +00:00
Stephen Colebourne b1328e6ce5 Renamed ignoredSimpleTests to ignoredTests in BulkTest
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131240 13f79535-47bb-0310-9956-ffa450edef68
2003-10-05 20:48:59 +00:00
Stephen Colebourne 74d9449387 Renamed ignoredSimpleTests to ignoredTests in AbstractTestMap
Additional tests


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131239 13f79535-47bb-0310-9956-ffa450edef68
2003-10-05 20:47:37 +00:00
Stephen Colebourne 999d7f34cc Renamed ignoredSimpleTests to ignoredTests in AbstractTestMap
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131238 13f79535-47bb-0310-9956-ffa450edef68
2003-10-05 20:46:40 +00:00
Stephen Colebourne a322e63163 Refactor implementation to act as more of a decorator
Fixed some bugs too


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131237 13f79535-47bb-0310-9956-ffa450edef68
2003-10-05 20:40:52 +00:00
Stephen Colebourne 456adc3354 Clarify the contract of the put method in BidiMaps
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131236 13f79535-47bb-0310-9956-ffa450edef68
2003-10-05 20:38:55 +00:00
Phil Steitz 4b2811d1c4 Added get(object, index) method to CollectionUtils, deprecating index(-,-) methods.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131235 13f79535-47bb-0310-9956-ffa450edef68
2003-10-05 19:48:00 +00:00
Stephen Colebourne 03f4174238 Make testframework jar independent of collections jar
(Except Bag interface)


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131234 13f79535-47bb-0310-9956-ffa450edef68
2003-10-05 12:34:46 +00:00
Phil Steitz f8acd98e11 Fixed bug related to CreateNode parameter order reported on commons-dev list by David.Hay@REQUISITE.com on 3-Oct-03.
Added tests to TestCommonsLinkedList to cover node-manipulation methods and changed TestNodeCachingLinkedList to extend TestCommonsLinkedList.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131233 13f79535-47bb-0310-9956-ffa450edef68
2003-10-05 06:41:08 +00:00
Stephen Colebourne 9be6a962ed Refactor SetList to be a subclass of the abstract decorator
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131232 13f79535-47bb-0310-9956-ffa450edef68
2003-10-04 00:50:35 +00:00
Stephen Colebourne 69ebc9f4ac Better error for debugging
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131231 13f79535-47bb-0310-9956-ffa450edef68
2003-10-04 00:49:27 +00:00
Stephen Colebourne 333541bc3c Deprecate DefaultMapEntry in the main package
Fix resultant deprecation warnings


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131230 13f79535-47bb-0310-9956-ffa450edef68
2003-10-03 23:19:32 +00:00
Phil Steitz 3b50d3cef8 Changed references to TestMap to AbstractTestMap in TestOrderedMap
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131229 13f79535-47bb-0310-9956-ffa450edef68
2003-10-03 12:54:54 +00:00
Henri Yandell 3a5194a37a more cleaning up, removing negative comments :)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131228 13f79535-47bb-0310-9956-ffa450edef68
2003-10-03 06:31:03 +00:00
Henri Yandell 79908ade0a tidied up the entryset code
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131227 13f79535-47bb-0310-9956-ffa450edef68
2003-10-03 06:25:03 +00:00
Henri Yandell 9804521d1d Adding in OrderedMap class. Similar functionality to a SequencedHashmap, it is
decorable and able to sit on top of other Map implementations.

This is the first version to pass the unit tests, so I'm pushing it in. The
major thing I know it doesn't do is that keySet/entrySet and values iterator()
methods do not back their remove()'s onto the Map itself. The views themselves
do, just not their iterators yet.

This shows that we need unit tests for these :)


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131226 13f79535-47bb-0310-9956-ffa450edef68
2003-10-03 06:24:13 +00:00
Henri Yandell 5c8de4eb74 Added a toString to map the normal output from a HashMaps Map.Entry
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131225 13f79535-47bb-0310-9956-ffa450edef68
2003-10-03 06:20:54 +00:00
Stephen Colebourne f18bec8711 Add ability to create testframework jar
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131224 13f79535-47bb-0310-9956-ffa450edef68
2003-10-02 23:46:54 +00:00
Stephen Colebourne 7c3480003d Rename TestMap to AbstractTestMap
Rename TestSortedMap to AbstractTestSortedMap
Javadoc and tidy


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131223 13f79535-47bb-0310-9956-ffa450edef68
2003-10-02 23:01:10 +00:00
Stephen Colebourne 6318d9964c Rename TestSet to AbstractTestSet
Rename TestSortedSet to AbstractTestSortedSet
Javadoc and tidy


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131222 13f79535-47bb-0310-9956-ffa450edef68
2003-10-02 22:48:41 +00:00
Stephen Colebourne e476647953 Rename TestBag to AbstractTestBag
Rename TestSortedBag to AbstractTestSortedBag
Javadoc and tidy


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131221 13f79535-47bb-0310-9956-ffa450edef68
2003-10-02 22:35:31 +00:00
Matthew Hawthorne 54f2a8e85b Adding SetList decorator from bug #22826
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131220 13f79535-47bb-0310-9956-ffa450edef68
2003-10-02 22:34:44 +00:00
Stephen Colebourne a3155911c2 Rename TestObject to AbstractTestObject
Rename TestCollection to AbstractTestCollection
Rename TestList to AbstractTestList
Javadoc and tidy


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131219 13f79535-47bb-0310-9956-ffa450edef68
2003-10-02 22:14:35 +00:00
Stephen Colebourne 03fe3cdb91 Ensure Ant tests all the packages
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131218 13f79535-47bb-0310-9956-ffa450edef68
2003-10-02 20:36:11 +00:00
Henri Yandell aea2f2fa32 Added a test to prove that a Map's keySet method is backed by the map. Also added a series of TODOs to cover all the other backing/non-backing possibilities.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131217 13f79535-47bb-0310-9956-ffa450edef68
2003-10-02 04:04:22 +00:00