Class AbstractMapTest

java.lang.Object
de.hybris.platform.test.AbstractMapTest
Direct Known Subclasses:
LRUMapTest, MemoryAwareMapTest, YFastMapPerformanceTest

public abstract class AbstractMapTest extends Object
super class for tests of Map implementations
  • Field Details

    • map

      protected Map map
  • Constructor Details

    • AbstractMapTest

      public AbstractMapTest()
  • Method Details

    • setUp

      public void setUp() throws Exception
      Throws:
      Exception
    • createMapInstance

      protected abstract 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 (see 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.