Package de.hybris.platform.test
Class AbstractMapTest
- java.lang.Object
-
- de.hybris.platform.test.AbstractMapTest
-
- Direct Known Subclasses:
LRUMapTest,MemoryAwareMapTest,YFastMapPerformanceTest
public abstract class AbstractMapTest extends java.lang.Objectsuper class for tests ofMapimplementations
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Mapmap
-
Constructor Summary
Constructors Constructor Description AbstractMapTest()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.util.MapcreateMapInstance()voidsetUp()voidtestClear()voidtestContainsKeyValue()voidtestEqualsAndHash()voidtestToString()Tests if this map's toString() method is applying the commonly used method to print its contents as a String (seeAbstractMap.toString(), for example).
-
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception- Throws:
java.lang.Exception
-
createMapInstance
protected abstract java.util.Map createMapInstance()
-
testClear
public void testClear()
-
testContainsKeyValue
public void testContainsKeyValue()
-
testEqualsAndHash
public void testEqualsAndHash()
-
testToString
public void testToString()
Tests if this map's toString() method is applying the commonly used method to print its contents as a String (seeAbstractMap.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.
-
-