public abstract class AbstractMapTest extends Object
Map implementations| Constructor and Description |
|---|
AbstractMapTest() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract 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). |
protected Map map
protected abstract 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 © 2017 SAP SE. All Rights Reserved.