Undo. Put is an optional operation for a Map.

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130529 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Morgan James Delagrange 2002-02-15 20:48:18 +00:00
parent f05739cf89
commit 6c42be5cd0
1 changed files with 4 additions and 16 deletions

View File

@ -1,7 +1,7 @@
/* /*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/Attic/TestMap.java,v 1.2 2002/02/15 20:40:14 morgand Exp $ * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/Attic/TestMap.java,v 1.3 2002/02/15 20:48:18 morgand Exp $
* $Revision: 1.2 $ * $Revision: 1.3 $
* $Date: 2002/02/15 20:40:14 $ * $Date: 2002/02/15 20:48:18 $
* *
* ==================================================================== * ====================================================================
* *
@ -76,7 +76,7 @@ import java.util.Collection;
* test case (method) your {@link Map} fails. * test case (method) your {@link Map} fails.
* *
* @author Rodney Waldhoff * @author Rodney Waldhoff
* @version $Id: TestMap.java,v 1.2 2002/02/15 20:40:14 morgand Exp $ * @version $Id: TestMap.java,v 1.3 2002/02/15 20:48:18 morgand Exp $
*/ */
public abstract class TestMap extends TestObject { public abstract class TestMap extends TestObject {
public TestMap(String testName) { public TestMap(String testName) {
@ -92,18 +92,6 @@ public abstract class TestMap extends TestObject {
return makeMap(); return makeMap();
} }
public void testMapSupportsNullValues() {
Map map = makeMap();
map.put(new Integer(1),"foo");
assertTrue("no null values in Map",map.containsValue(null) == false);
map.put(new Integer(2),null);
assertTrue("null value in Map",map.containsValue(null));
assertTrue("key to a null value",map.containsKey(new Integer(2)));
}
/* /*
// optional operation // optional operation