public abstract class AbstractMapTest
extends java.lang.Object
Map implementations| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map |
map |
| Constructor and Description |
|---|
AbstractMapTest() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.util.Map |
createMapInstance() |
void |
setUp() |
void |
testClear() |
void |
testContainsKeyValue() |
void |
testEqualsAndHash() |
void |
testToString()
Tests if this map's toString() method is applying the commonly used method to print its contents as a String (see
AbstractMap.toString(), for example). |
public void setUp()
throws java.lang.Exception
java.lang.Exceptionprotected abstract java.util.Map createMapInstance()
public void testClear()
public void testContainsKeyValue()
public void testEqualsAndHash()
public void testToString()
AbstractMap.toString(), for example).
However, the 'Map contract' does not enforce the way this method works, so if your map implementation does not use
this standard representation, you might want to override this method here in your own test.Copyright © 2018 SAP SE. All Rights Reserved.