Code example for Dictionary

Methods: remove

0
		assertNull(dict.remove(key));
	} 
 
	public void testRemoveNullObject() { 
		try { 
			dict.remove(null);
			fail("should have thrown NPE");
		} 
		catch (NullPointerException e) {
			// expected 
		} 
 
	} 
 
	public void testPutObjectObject() { 
		assertNull(dict.put(new Object(), new Object()));
 
		Object key = new Object();
		Object value = new Object();
 
Contextual code suggestions in your IDE  Get Codota for Java