Class SortedMapInterfaceTest<K,V>

java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.google.common.collect.testing.MapInterfaceTest<K,V>
com.google.common.collect.testing.SortedMapInterfaceTest<K,V>
All Implemented Interfaces:
junit.framework.Test

@GwtCompatible public abstract class SortedMapInterfaceTest<K,V> extends MapInterfaceTest<K,V>
Tests representing the contract of SortedMap. Concrete subclasses of this base class test conformance of concrete SortedMap subclasses to that contract.
Author:
Jared Levy
  • Constructor Details

    • SortedMapInterfaceTest

      protected SortedMapInterfaceTest(boolean allowsNullKeys, boolean allowsNullValues, boolean supportsPut, boolean supportsRemove, boolean supportsClear)
  • Method Details

    • makeEmptyMap

      protected abstract SortedMap<K,V> makeEmptyMap()
      Description copied from class: MapInterfaceTest
      Creates a new, empty instance of the class under test.
      Specified by:
      makeEmptyMap in class MapInterfaceTest<K,V>
      Returns:
      a new, empty map instance.
    • makePopulatedMap

      protected abstract SortedMap<K,V> makePopulatedMap()
      Description copied from class: MapInterfaceTest
      Creates a new, non-empty instance of the class under test.
      Specified by:
      makePopulatedMap in class MapInterfaceTest<K,V>
      Returns:
      a new, non-empty map instance.
    • makeEitherMap

      protected SortedMap<K,V> makeEitherMap()
      Description copied from class: MapInterfaceTest
      Used by tests that require a map, but don't care whether it's populated or not.
      Overrides:
      makeEitherMap in class MapInterfaceTest<K,V>
      Returns:
      a new map instance.
    • testTailMapWriteThrough

      public void testTailMapWriteThrough()
    • testTailMapRemoveThrough

      public void testTailMapRemoveThrough()
    • testTailMapClearThrough

      public void testTailMapClearThrough()