Search in sources :

Example 1 with ImmutableBiMapGenerator

use of com.google.common.collect.testing.google.BiMapGenerators.ImmutableBiMapGenerator 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;
}
Also used : TestSuite(junit.framework.TestSuite) ImmutableBiMapGenerator(com.google.common.collect.testing.google.BiMapGenerators.ImmutableBiMapGenerator) ImmutableBiMapCopyOfGenerator(com.google.common.collect.testing.google.BiMapGenerators.ImmutableBiMapCopyOfGenerator) ImmutableBiMapCopyOfEntriesGenerator(com.google.common.collect.testing.google.BiMapGenerators.ImmutableBiMapCopyOfEntriesGenerator) GwtIncompatible(com.google.common.annotations.GwtIncompatible)

Aggregations

GwtIncompatible (com.google.common.annotations.GwtIncompatible)1 ImmutableBiMapCopyOfEntriesGenerator (com.google.common.collect.testing.google.BiMapGenerators.ImmutableBiMapCopyOfEntriesGenerator)1 ImmutableBiMapCopyOfGenerator (com.google.common.collect.testing.google.BiMapGenerators.ImmutableBiMapCopyOfGenerator)1 ImmutableBiMapGenerator (com.google.common.collect.testing.google.BiMapGenerators.ImmutableBiMapGenerator)1 TestSuite (junit.framework.TestSuite)1