Class SortedMapTestSuiteBuilder<K,V>
java.lang.Object
com.google.common.collect.testing.FeatureSpecificTestSuiteBuilder<MapTestSuiteBuilder<K,V>,TestMapGenerator<K,V>>
com.google.common.collect.testing.PerCollectionSizeTestSuiteBuilder<MapTestSuiteBuilder<K,V>,TestMapGenerator<K,V>,Map<K,V>,Map.Entry<K,V>>
com.google.common.collect.testing.MapTestSuiteBuilder<K,V>
com.google.common.collect.testing.SortedMapTestSuiteBuilder<K,V>
- Direct Known Subclasses:
NavigableMapTestSuiteBuilder
Creates, based on your criteria, a JUnit test suite that exhaustively tests a SortedMap
implementation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static enum
To avoid infinite recursion, test suites with these marker features won't have derived suites created for them. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SetTestSuiteBuilder
<K> createDerivedKeySetSuite
(TestSetGenerator<K> keySetGenerator) protected List
<junit.framework.TestSuite> createDerivedSuites
(FeatureSpecificTestSuiteBuilder<?, ? extends OneSizeTestContainerGenerator<Map<K, V>, Map.Entry<K, V>>> parentBuilder) (package private) final junit.framework.TestSuite
createSubmapSuite
(FeatureSpecificTestSuiteBuilder<?, ? extends OneSizeTestContainerGenerator<Map<K, V>, Map.Entry<K, V>>> parentBuilder, DerivedCollectionGenerators.Bound from, DerivedCollectionGenerators.Bound to) Creates a suite whose map has some elements filtered out of view.junit.framework.TestSuite
Creates a runnable JUnit test suite based on the criteria already given.protected List
<Class<? extends AbstractTester>> (package private) SortedMapTestSuiteBuilder
<K, V> newBuilderUsing
(TestSortedMapGenerator<K, V> delegate, DerivedCollectionGenerators.Bound to, DerivedCollectionGenerators.Bound from) Like using() but overrideable by NavigableMapTestSuiteBuilder.static <K,
V> SortedMapTestSuiteBuilder <K, V> using
(TestSortedMapGenerator<K, V> generator) Methods inherited from class com.google.common.collect.testing.MapTestSuiteBuilder
computeCommonDerivedCollectionFeatures, createDerivedEntrySetSuite, createDerivedValueCollectionSuite, using
Methods inherited from class com.google.common.collect.testing.FeatureSpecificTestSuiteBuilder
checkCanCreate, formatFeatureSet, getFeatures, getName, getSetUp, getSubjectGenerator, getSuppressedTests, getTearDown, makeSuiteForTesterClass, named, self, suppressing, suppressing, usingGenerator, withFeatures, withFeatures, withSetUp, withTearDown
-
Constructor Details
-
SortedMapTestSuiteBuilder
public SortedMapTestSuiteBuilder()
-
-
Method Details
-
using
-
getTesters
- Overrides:
getTesters
in classMapTestSuiteBuilder<K,
V>
-
createTestSuite
public junit.framework.TestSuite createTestSuite()Description copied from class:PerCollectionSizeTestSuiteBuilder
Creates a runnable JUnit test suite based on the criteria already given.- Overrides:
createTestSuite
in classPerCollectionSizeTestSuiteBuilder<MapTestSuiteBuilder<K,
V>, TestMapGenerator<K, V>, Map<K, V>, Map.Entry<K, V>>
-
createDerivedSuites
protected List<junit.framework.TestSuite> createDerivedSuites(FeatureSpecificTestSuiteBuilder<?, ? extends OneSizeTestContainerGenerator<Map<K, V>, Map.Entry<K, V>>> parentBuilder) - Overrides:
createDerivedSuites
in classMapTestSuiteBuilder<K,
V>
-
createDerivedKeySetSuite
- Overrides:
createDerivedKeySetSuite
in classMapTestSuiteBuilder<K,
V>
-
createSubmapSuite
final junit.framework.TestSuite createSubmapSuite(FeatureSpecificTestSuiteBuilder<?, ? extends OneSizeTestContainerGenerator<Map<K, V>, Map.Entry<K, V>>> parentBuilder, DerivedCollectionGenerators.Bound from, DerivedCollectionGenerators.Bound to) Creates a suite whose map has some elements filtered out of view.Because the map may be ascending or descending, this test must derive the relative order of these extreme values rather than relying on their regular sort ordering.
-
newBuilderUsing
SortedMapTestSuiteBuilder<K,V> newBuilderUsing(TestSortedMapGenerator<K, V> delegate, DerivedCollectionGenerators.Bound to, DerivedCollectionGenerators.Bound from) Like using() but overrideable by NavigableMapTestSuiteBuilder.
-