Class AbstractMapTest

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Map map  
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractMapTest()  
    • Field Detail

      • map

        protected java.util.Map map
    • Constructor Detail

      • AbstractMapTest

        public AbstractMapTest()
    • 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 (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.