scolebourne 2003/12/29 11:46:19
Modified: collections/src/test/org/apache/commons/collections/map
AbstractTestMap.java
Log:
Improve documentation and error messages
Revision Changes Path
1.5 +8 -8
jakarta-commons/collections/src/test/org/apache/commons/collections/map/AbstractTestMap.java
Index: AbstractTestMap.java
===================================================================
RCS file:
/home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/map/AbstractTestMap.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- AbstractTestMap.java 14 Dec 2003 13:01:07 -0000 1.4
+++ AbstractTestMap.java 29 Dec 2003 19:46:19 -0000 1.5
@@ -381,8 +381,8 @@
}
/**
- * Helper method to add all the mappings described by [EMAIL PROTECTED]
- * #getSampleKeys()} and [EMAIL PROTECTED] #getSampleValues()}.
+ * Helper method to add all the mappings described by
+ * [EMAIL PROTECTED] #getSampleKeys()} and [EMAIL PROTECTED]
#getSampleValues()}.
*/
public void addSampleMappings(Map m) {
@@ -398,11 +398,11 @@
keys[i] == null || values[i] == null);
assertTrue("NullPointerException on null key, but " +
- "isNullKeySupported is not overridden to return false.",
+ "isAllowNullKey is not overridden to return false.",
keys[i] == null || !isAllowNullKey());
assertTrue("NullPointerException on null value, but " +
- "isNullValueSupported is not overridden to return
false.",
+ "isAllowNullValue is not overridden to return false.",
values[i] == null || !isAllowNullValue());
assertTrue("Unknown reason for NullPointer.", false);
@@ -422,8 +422,8 @@
/**
* Return a new, populated map. The mappings in the map should match the
- * keys and values returned from [EMAIL PROTECTED] #getSampleKeys()} and [EMAIL
PROTECTED]
- * #getSampleValues()}. The default implementation uses makeEmptyMap()
+ * keys and values returned from [EMAIL PROTECTED] #getSampleKeys()} and
+ * [EMAIL PROTECTED] #getSampleValues()}. The default implementation uses
makeEmptyMap()
* and calls [EMAIL PROTECTED] #addSampleMappings} to add all the mappings to
the
* map.
*
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]