Class BiMapInverseTester<K,V>

All Implemented Interfaces:
junit.framework.Test

public class BiMapInverseTester<K,V> extends AbstractBiMapTester<K,V>
Tests for the inverse view of a BiMap.

This assumes that bimap.inverse().inverse() == bimap, which is not technically required but is fulfilled by all current implementations.

  • Constructor Details

    • BiMapInverseTester

      public BiMapInverseTester()
  • Method Details

    • testInverseSame

      public void testInverseSame()
    • testInverseSerialization

      public void testInverseSerialization()
    • getInverseSameAfterSerializingMethods

      public static List<Method> getInverseSameAfterSerializingMethods()
      Returns Method instances for the tests that assume that the inverse will be the same after serialization.
    • getMethod

      private static Method getMethod(String methodName)