You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by sc...@apache.org on 2003/04/26 12:25:36 UTC
cvs commit: jakarta-commons/collections/src/test/org/apache/commons/collections TestCollection.java
scolebourne 2003/04/26 03:25:36
Modified: collections/src/test/org/apache/commons/collections
TestCollection.java
Log:
Updated test for better error messages
from Neil O'Toole
Revision Changes Path
1.10 +8 -7 jakarta-commons/collections/src/test/org/apache/commons/collections/TestCollection.java
Index: TestCollection.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestCollection.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- TestCollection.java 12 Oct 2002 22:36:22 -0000 1.9
+++ TestCollection.java 26 Apr 2003 10:25:35 -0000 1.10
@@ -155,6 +155,7 @@
* @author Rodney Waldhoff
* @author Paul Jack
* @author <a href="mailto:mas@apache.org">Michael A. Smith</a>
+ * @author Neil O'Toole
* @version $Id$
*/
public abstract class TestCollection extends TestObject {
@@ -579,7 +580,7 @@
resetEmpty();
elements = getFullElements();
for(int i = 0; i < elements.length; i++) {
- assertTrue("Empty collection shouldn'y contain element",
+ assertTrue("Empty collection shouldn't contain element[" + i + "]",
!collection.contains(elements[i]));
}
// make sure calls to "contains" don't change anything
@@ -587,7 +588,7 @@
elements = getOtherElements();
for(int i = 0; i < elements.length; i++) {
- assertTrue("Empty collection shouldn'y contain element",
+ assertTrue("Empty collection shouldn't contain element[" + i + "]",
!collection.contains(elements[i]));
}
// make sure calls to "contains" don't change anything
@@ -596,7 +597,7 @@
resetFull();
elements = getFullElements();
for(int i = 0; i < elements.length; i++) {
- assertTrue("Full collection should contain element.",
+ assertTrue("Full collection should contain element[" + i + "]",
collection.contains(elements[i]));
}
// make sure calls to "contains" don't change anything
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org