Search in sources :

Example 1 with ImmutableSortedSetUnhashableGenerator

use of com.google.common.collect.testing.google.SetGenerators.ImmutableSortedSetUnhashableGenerator in project guava by google.

the class ImmutableSortedSetTest method suite.

// suite
@GwtIncompatible
public static Test suite() {
    TestSuite suite = new TestSuite();
    suite.addTest(NavigableSetTestSuiteBuilder.using(new ImmutableSortedSetCopyOfGenerator()).named(ImmutableSortedSetTest.class.getName()).withFeatures(CollectionSize.ANY, CollectionFeature.KNOWN_ORDER, CollectionFeature.SERIALIZABLE, CollectionFeature.ALLOWS_NULL_QUERIES).createTestSuite());
    suite.addTest(NavigableSetTestSuiteBuilder.using(new ImmutableSortedSetExplicitComparator()).named(ImmutableSortedSetTest.class.getName() + ", explicit comparator, vararg").withFeatures(CollectionSize.ANY, CollectionFeature.KNOWN_ORDER, CollectionFeature.SERIALIZABLE, CollectionFeature.ALLOWS_NULL_QUERIES).createTestSuite());
    suite.addTest(NavigableSetTestSuiteBuilder.using(new ImmutableSortedSetExplicitSuperclassComparatorGenerator()).named(ImmutableSortedSetTest.class.getName() + ", explicit superclass comparator, iterable").withFeatures(CollectionSize.ANY, CollectionFeature.KNOWN_ORDER, CollectionFeature.SERIALIZABLE, CollectionFeature.ALLOWS_NULL_QUERIES).createTestSuite());
    suite.addTest(NavigableSetTestSuiteBuilder.using(new ImmutableSortedSetReversedOrderGenerator()).named(ImmutableSortedSetTest.class.getName() + ", reverseOrder, iterator").withFeatures(CollectionSize.ANY, CollectionFeature.KNOWN_ORDER, CollectionFeature.SERIALIZABLE, CollectionFeature.ALLOWS_NULL_QUERIES).createTestSuite());
    suite.addTest(NavigableSetTestSuiteBuilder.using(new ImmutableSortedSetUnhashableGenerator()).suppressing(SetHashCodeTester.getHashCodeMethods()).named(ImmutableSortedSetTest.class.getName() + ", unhashable").withFeatures(CollectionSize.ANY, CollectionFeature.KNOWN_ORDER, CollectionFeature.ALLOWS_NULL_QUERIES).createTestSuite());
    suite.addTest(NavigableSetTestSuiteBuilder.using(new ImmutableSortedSetDescendingGenerator()).named(ImmutableSortedSetTest.class.getName() + ", descending").withFeatures(CollectionSize.ANY, CollectionFeature.KNOWN_ORDER, CollectionFeature.SERIALIZABLE, CollectionFeature.ALLOWS_NULL_QUERIES).createTestSuite());
    suite.addTest(ListTestSuiteBuilder.using(new ImmutableSortedSetAsListGenerator()).named("ImmutableSortedSet.asList").withFeatures(CollectionSize.ANY, CollectionFeature.REJECTS_DUPLICATES_AT_CREATION, CollectionFeature.SERIALIZABLE, CollectionFeature.ALLOWS_NULL_QUERIES).createTestSuite());
    suite.addTest(ListTestSuiteBuilder.using(new ImmutableSortedSetSubsetAsListGenerator()).named("ImmutableSortedSet.subSet.asList").withFeatures(CollectionSize.ANY, CollectionFeature.REJECTS_DUPLICATES_AT_CREATION, CollectionFeature.SERIALIZABLE, CollectionFeature.ALLOWS_NULL_QUERIES).createTestSuite());
    suite.addTest(ListTestSuiteBuilder.using(new ImmutableSortedSetDescendingAsListGenerator()).named("ImmutableSortedSet.descendingSet.asList").withFeatures(CollectionSize.ANY, CollectionFeature.REJECTS_DUPLICATES_AT_CREATION, CollectionFeature.SERIALIZABLE, CollectionFeature.ALLOWS_NULL_QUERIES).createTestSuite());
    suite.addTestSuite(ImmutableSortedSetTest.class);
    return suite;
}
Also used : ImmutableSortedSetDescendingAsListGenerator(com.google.common.collect.testing.google.SetGenerators.ImmutableSortedSetDescendingAsListGenerator) TestSuite(junit.framework.TestSuite) ImmutableSortedSetExplicitSuperclassComparatorGenerator(com.google.common.collect.testing.google.SetGenerators.ImmutableSortedSetExplicitSuperclassComparatorGenerator) ImmutableSortedSetReversedOrderGenerator(com.google.common.collect.testing.google.SetGenerators.ImmutableSortedSetReversedOrderGenerator) ImmutableSortedSetDescendingGenerator(com.google.common.collect.testing.google.SetGenerators.ImmutableSortedSetDescendingGenerator) ImmutableSortedSetSubsetAsListGenerator(com.google.common.collect.testing.google.SetGenerators.ImmutableSortedSetSubsetAsListGenerator) ImmutableSortedSetCopyOfGenerator(com.google.common.collect.testing.google.SetGenerators.ImmutableSortedSetCopyOfGenerator) ImmutableSortedSetExplicitComparator(com.google.common.collect.testing.google.SetGenerators.ImmutableSortedSetExplicitComparator) ImmutableSortedSetUnhashableGenerator(com.google.common.collect.testing.google.SetGenerators.ImmutableSortedSetUnhashableGenerator) ImmutableSortedSetAsListGenerator(com.google.common.collect.testing.google.SetGenerators.ImmutableSortedSetAsListGenerator) GwtIncompatible(com.google.common.annotations.GwtIncompatible)

Example 2 with ImmutableSortedSetUnhashableGenerator

use of com.google.common.collect.testing.google.SetGenerators.ImmutableSortedSetUnhashableGenerator in project guava by hceylan.

the class ImmutableSetCollectionTest method suite.

public static Test suite() {
    TestSuite suite = new TestSuite();
    suite.addTest(SetTestSuiteBuilder.using(new ImmutableSetCopyOfGenerator()).named(ImmutableSetTest.class.getName()).withFeatures(CollectionSize.ANY, CollectionFeature.KNOWN_ORDER, CollectionFeature.SERIALIZABLE, CollectionFeature.ALLOWS_NULL_QUERIES).createTestSuite());
    suite.addTest(SetTestSuiteBuilder.using(new ImmutableSetWithBadHashesGenerator()).named(ImmutableSetTest.class.getName() + ", with bad hashes").withFeatures(CollectionSize.ANY, CollectionFeature.KNOWN_ORDER, CollectionFeature.ALLOWS_NULL_QUERIES).createTestSuite());
    suite.addTest(SetTestSuiteBuilder.using(new DegeneratedImmutableSetGenerator()).named(ImmutableSetTest.class.getName() + ", degenerate").withFeatures(CollectionSize.ONE, CollectionFeature.KNOWN_ORDER, CollectionFeature.ALLOWS_NULL_QUERIES).createTestSuite());
    suite.addTest(NavigableSetTestSuiteBuilder.using(new ImmutableSortedSetCopyOfGenerator()).named(ImmutableSortedSetTest.class.getName()).withFeatures(CollectionSize.ANY, CollectionFeature.KNOWN_ORDER, CollectionFeature.SERIALIZABLE, CollectionFeature.ALLOWS_NULL_QUERIES).createTestSuite());
    suite.addTest(NavigableSetTestSuiteBuilder.using(new ImmutableSortedSetHeadsetGenerator()).named(ImmutableSortedSetTest.class.getName() + ", headset").withFeatures(CollectionSize.ANY, CollectionFeature.KNOWN_ORDER, CollectionFeature.SERIALIZABLE, CollectionFeature.ALLOWS_NULL_QUERIES).createTestSuite());
    suite.addTest(NavigableSetTestSuiteBuilder.using(new ImmutableSortedSetTailsetGenerator()).named(ImmutableSortedSetTest.class.getName() + ", tailset").withFeatures(CollectionSize.ANY, CollectionFeature.KNOWN_ORDER, CollectionFeature.SERIALIZABLE, CollectionFeature.ALLOWS_NULL_QUERIES).createTestSuite());
    suite.addTest(NavigableSetTestSuiteBuilder.using(new ImmutableSortedSetSubsetGenerator()).named(ImmutableSortedSetTest.class.getName() + ", subset").withFeatures(CollectionSize.ANY, CollectionFeature.KNOWN_ORDER, CollectionFeature.SERIALIZABLE, CollectionFeature.ALLOWS_NULL_QUERIES).createTestSuite());
    suite.addTest(NavigableSetTestSuiteBuilder.using(new ImmutableSortedSetDescendingGenerator()).named(ImmutableSortedSetTest.class.getName() + ", descending").withFeatures(CollectionSize.ANY, CollectionFeature.KNOWN_ORDER, CollectionFeature.SERIALIZABLE, CollectionFeature.ALLOWS_NULL_QUERIES).createTestSuite());
    suite.addTest(NavigableSetTestSuiteBuilder.using(new ImmutableSortedSetExplicitComparator()).named(ImmutableSortedSetTest.class.getName() + ", explicit comparator, vararg").withFeatures(CollectionSize.ANY, CollectionFeature.KNOWN_ORDER, CollectionFeature.SERIALIZABLE, CollectionFeature.ALLOWS_NULL_QUERIES).createTestSuite());
    suite.addTest(NavigableSetTestSuiteBuilder.using(new ImmutableSortedSetExplicitSuperclassComparatorGenerator()).named(ImmutableSortedSetTest.class.getName() + ", explicit superclass comparator, iterable").withFeatures(CollectionSize.ANY, CollectionFeature.KNOWN_ORDER, CollectionFeature.SERIALIZABLE, CollectionFeature.ALLOWS_NULL_QUERIES).createTestSuite());
    suite.addTest(NavigableSetTestSuiteBuilder.using(new ImmutableSortedSetReversedOrderGenerator()).named(ImmutableSortedSetTest.class.getName() + ", reverseOrder, iterator").withFeatures(CollectionSize.ANY, CollectionFeature.KNOWN_ORDER, CollectionFeature.SERIALIZABLE, CollectionFeature.ALLOWS_NULL_QUERIES).createTestSuite());
    suite.addTest(NavigableSetTestSuiteBuilder.using(new ImmutableSortedSetUnhashableGenerator()).suppressing(SetHashCodeTester.getHashCodeMethods()).named(ImmutableSortedSetTest.class.getName() + ", unhashable").withFeatures(CollectionSize.ANY, CollectionFeature.KNOWN_ORDER, CollectionFeature.ALLOWS_NULL_QUERIES).createTestSuite());
    suite.addTest(ListTestSuiteBuilder.using(new ImmutableSetAsListGenerator()).named("ImmutableSet.asList").withFeatures(CollectionSize.ANY, CollectionFeature.REJECTS_DUPLICATES_AT_CREATION, CollectionFeature.SERIALIZABLE, CollectionFeature.ALLOWS_NULL_QUERIES).createTestSuite());
    suite.addTest(ListTestSuiteBuilder.using(new ImmutableSortedSetAsListGenerator()).named("ImmutableSortedSet.asList").withFeatures(CollectionSize.ANY, CollectionFeature.REJECTS_DUPLICATES_AT_CREATION, CollectionFeature.SERIALIZABLE, CollectionFeature.ALLOWS_NULL_QUERIES).createTestSuite());
    suite.addTest(ListTestSuiteBuilder.using(new ImmutableSortedSetSubsetAsListGenerator()).named("ImmutableSortedSet.subSet.asList").withFeatures(CollectionSize.ANY, CollectionFeature.REJECTS_DUPLICATES_AT_CREATION, CollectionFeature.SERIALIZABLE, CollectionFeature.ALLOWS_NULL_QUERIES).createTestSuite());
    suite.addTest(ListTestSuiteBuilder.using(new ImmutableSortedSetDescendingAsListGenerator()).named("ImmutableSortedSet.descendingSet.asList").withFeatures(CollectionSize.ANY, CollectionFeature.REJECTS_DUPLICATES_AT_CREATION, CollectionFeature.SERIALIZABLE, CollectionFeature.ALLOWS_NULL_QUERIES).createTestSuite());
    suite.addTest(ListTestSuiteBuilder.using(new ImmutableSortedSetAsListSubListGenerator()).named("ImmutableSortedSet.asList.subList").withFeatures(CollectionSize.ANY, CollectionFeature.REJECTS_DUPLICATES_AT_CREATION, CollectionFeature.SERIALIZABLE, CollectionFeature.ALLOWS_NULL_QUERIES).createTestSuite());
    suite.addTest(ListTestSuiteBuilder.using(new ImmutableSortedsetSubsetAsListSubListGenerator()).named("ImmutableSortedSet.subSet.asList.subList").withFeatures(CollectionSize.ANY, CollectionFeature.REJECTS_DUPLICATES_AT_CREATION, CollectionFeature.SERIALIZABLE, CollectionFeature.ALLOWS_NULL_QUERIES).createTestSuite());
    return suite;
}
Also used : ImmutableSortedSetTailsetGenerator(com.google.common.collect.testing.google.SetGenerators.ImmutableSortedSetTailsetGenerator) ImmutableSortedSetHeadsetGenerator(com.google.common.collect.testing.google.SetGenerators.ImmutableSortedSetHeadsetGenerator) ImmutableSortedsetSubsetAsListSubListGenerator(com.google.common.collect.testing.google.SetGenerators.ImmutableSortedsetSubsetAsListSubListGenerator) ImmutableSortedSetReversedOrderGenerator(com.google.common.collect.testing.google.SetGenerators.ImmutableSortedSetReversedOrderGenerator) ImmutableSetCopyOfGenerator(com.google.common.collect.testing.google.SetGenerators.ImmutableSetCopyOfGenerator) DegeneratedImmutableSetGenerator(com.google.common.collect.testing.google.SetGenerators.DegeneratedImmutableSetGenerator) ImmutableSortedSetExplicitComparator(com.google.common.collect.testing.google.SetGenerators.ImmutableSortedSetExplicitComparator) ImmutableSetAsListGenerator(com.google.common.collect.testing.google.SetGenerators.ImmutableSetAsListGenerator) ImmutableSortedSetDescendingAsListGenerator(com.google.common.collect.testing.google.SetGenerators.ImmutableSortedSetDescendingAsListGenerator) TestSuite(junit.framework.TestSuite) ImmutableSortedSetExplicitSuperclassComparatorGenerator(com.google.common.collect.testing.google.SetGenerators.ImmutableSortedSetExplicitSuperclassComparatorGenerator) ImmutableSetWithBadHashesGenerator(com.google.common.collect.testing.google.SetGenerators.ImmutableSetWithBadHashesGenerator) ImmutableSortedSetSubsetGenerator(com.google.common.collect.testing.google.SetGenerators.ImmutableSortedSetSubsetGenerator) ImmutableSortedSetDescendingGenerator(com.google.common.collect.testing.google.SetGenerators.ImmutableSortedSetDescendingGenerator) ImmutableSortedSetSubsetAsListGenerator(com.google.common.collect.testing.google.SetGenerators.ImmutableSortedSetSubsetAsListGenerator) ImmutableSortedSetCopyOfGenerator(com.google.common.collect.testing.google.SetGenerators.ImmutableSortedSetCopyOfGenerator) ImmutableSortedSetUnhashableGenerator(com.google.common.collect.testing.google.SetGenerators.ImmutableSortedSetUnhashableGenerator) ImmutableSortedSetAsListGenerator(com.google.common.collect.testing.google.SetGenerators.ImmutableSortedSetAsListGenerator) ImmutableSortedSetAsListSubListGenerator(com.google.common.collect.testing.google.SetGenerators.ImmutableSortedSetAsListSubListGenerator)

Aggregations

ImmutableSortedSetAsListGenerator (com.google.common.collect.testing.google.SetGenerators.ImmutableSortedSetAsListGenerator)2 ImmutableSortedSetCopyOfGenerator (com.google.common.collect.testing.google.SetGenerators.ImmutableSortedSetCopyOfGenerator)2 ImmutableSortedSetDescendingAsListGenerator (com.google.common.collect.testing.google.SetGenerators.ImmutableSortedSetDescendingAsListGenerator)2 ImmutableSortedSetDescendingGenerator (com.google.common.collect.testing.google.SetGenerators.ImmutableSortedSetDescendingGenerator)2 ImmutableSortedSetExplicitComparator (com.google.common.collect.testing.google.SetGenerators.ImmutableSortedSetExplicitComparator)2 ImmutableSortedSetExplicitSuperclassComparatorGenerator (com.google.common.collect.testing.google.SetGenerators.ImmutableSortedSetExplicitSuperclassComparatorGenerator)2 ImmutableSortedSetReversedOrderGenerator (com.google.common.collect.testing.google.SetGenerators.ImmutableSortedSetReversedOrderGenerator)2 ImmutableSortedSetSubsetAsListGenerator (com.google.common.collect.testing.google.SetGenerators.ImmutableSortedSetSubsetAsListGenerator)2 ImmutableSortedSetUnhashableGenerator (com.google.common.collect.testing.google.SetGenerators.ImmutableSortedSetUnhashableGenerator)2 TestSuite (junit.framework.TestSuite)2 GwtIncompatible (com.google.common.annotations.GwtIncompatible)1 DegeneratedImmutableSetGenerator (com.google.common.collect.testing.google.SetGenerators.DegeneratedImmutableSetGenerator)1 ImmutableSetAsListGenerator (com.google.common.collect.testing.google.SetGenerators.ImmutableSetAsListGenerator)1 ImmutableSetCopyOfGenerator (com.google.common.collect.testing.google.SetGenerators.ImmutableSetCopyOfGenerator)1 ImmutableSetWithBadHashesGenerator (com.google.common.collect.testing.google.SetGenerators.ImmutableSetWithBadHashesGenerator)1 ImmutableSortedSetAsListSubListGenerator (com.google.common.collect.testing.google.SetGenerators.ImmutableSortedSetAsListSubListGenerator)1 ImmutableSortedSetHeadsetGenerator (com.google.common.collect.testing.google.SetGenerators.ImmutableSortedSetHeadsetGenerator)1 ImmutableSortedSetSubsetGenerator (com.google.common.collect.testing.google.SetGenerators.ImmutableSortedSetSubsetGenerator)1 ImmutableSortedSetTailsetGenerator (com.google.common.collect.testing.google.SetGenerators.ImmutableSortedSetTailsetGenerator)1 ImmutableSortedsetSubsetAsListSubListGenerator (com.google.common.collect.testing.google.SetGenerators.ImmutableSortedsetSubsetAsListSubListGenerator)1