use of com.google.common.collect.testing.google.BiMapGenerators.ImmutableBiMapCopyOfEntriesGenerator in project guava by google.
the class ImmutableBiMapTest method suite.
// TODO: Reduce duplication of ImmutableMapTest code
// suite
@GwtIncompatible
public static Test suite() {
TestSuite suite = new TestSuite();
suite.addTestSuite(MapTests.class);
suite.addTestSuite(InverseMapTests.class);
suite.addTestSuite(CreationTests.class);
suite.addTestSuite(BiMapSpecificTests.class);
suite.addTest(BiMapTestSuiteBuilder.using(new ImmutableBiMapGenerator()).named("ImmutableBiMap").withFeatures(CollectionSize.ANY, CollectionFeature.SERIALIZABLE, CollectionFeature.KNOWN_ORDER, MapFeature.REJECTS_DUPLICATES_AT_CREATION, MapFeature.ALLOWS_ANY_NULL_QUERIES).suppressing(BiMapInverseTester.getInverseSameAfterSerializingMethods()).createTestSuite());
suite.addTest(BiMapTestSuiteBuilder.using(new ImmutableBiMapCopyOfGenerator()).named("ImmutableBiMap.copyOf[Map]").withFeatures(CollectionSize.ANY, CollectionFeature.SERIALIZABLE, CollectionFeature.KNOWN_ORDER, MapFeature.ALLOWS_ANY_NULL_QUERIES).suppressing(BiMapInverseTester.getInverseSameAfterSerializingMethods()).createTestSuite());
suite.addTest(BiMapTestSuiteBuilder.using(new ImmutableBiMapCopyOfEntriesGenerator()).named("ImmutableBiMap.copyOf[Iterable<Entry>]").withFeatures(CollectionSize.ANY, CollectionFeature.SERIALIZABLE, CollectionFeature.KNOWN_ORDER, MapFeature.REJECTS_DUPLICATES_AT_CREATION, MapFeature.ALLOWS_ANY_NULL_QUERIES).suppressing(BiMapInverseTester.getInverseSameAfterSerializingMethods()).createTestSuite());
return suite;
}
Aggregations