Class SortedSetTestSuiteBuilder<E>
java.lang.Object
com.google.common.collect.testing.FeatureSpecificTestSuiteBuilder<SetTestSuiteBuilder<E>,TestCollectionGenerator<E>>
com.google.common.collect.testing.PerCollectionSizeTestSuiteBuilder<SetTestSuiteBuilder<E>,TestCollectionGenerator<E>,Collection<E>,E>
com.google.common.collect.testing.AbstractCollectionTestSuiteBuilder<SetTestSuiteBuilder<E>,E>
com.google.common.collect.testing.SetTestSuiteBuilder<E>
com.google.common.collect.testing.SortedSetTestSuiteBuilder<E>
- Direct Known Subclasses:
NavigableSetTestSuiteBuilder
Creates, based on your criteria, a JUnit test suite that exhaustively tests a SortedSet
implementation.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.common.collect.testing.SetTestSuiteBuilder
SetTestSuiteBuilder.ReserializedSetGenerator<E>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List
<junit.framework.TestSuite> createDerivedSuites
(FeatureSpecificTestSuiteBuilder<?, ? extends OneSizeTestContainerGenerator<Collection<E>, E>> parentBuilder) (package private) final junit.framework.TestSuite
createSubsetSuite
(FeatureSpecificTestSuiteBuilder<?, ? extends OneSizeTestContainerGenerator<Collection<E>, E>> parentBuilder, DerivedCollectionGenerators.Bound from, DerivedCollectionGenerators.Bound to) Creates a suite whose set 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) SortedSetTestSuiteBuilder
<E> newBuilderUsing
(TestSortedSetGenerator<E> delegate, DerivedCollectionGenerators.Bound to, DerivedCollectionGenerators.Bound from) Like using() but overrideable by NavigableSetTestSuiteBuilder.static <E> SortedSetTestSuiteBuilder
<E> using
(TestSortedSetGenerator<E> generator) Methods inherited from class com.google.common.collect.testing.SetTestSuiteBuilder
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
-
SortedSetTestSuiteBuilder
public SortedSetTestSuiteBuilder()
-
-
Method Details
-
using
-
getTesters
- Overrides:
getTesters
in classSetTestSuiteBuilder<E>
-
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<SetTestSuiteBuilder<E>,
TestCollectionGenerator<E>, Collection<E>, E>
-
createDerivedSuites
protected List<junit.framework.TestSuite> createDerivedSuites(FeatureSpecificTestSuiteBuilder<?, ? extends OneSizeTestContainerGenerator<Collection<E>, E>> parentBuilder) - Overrides:
createDerivedSuites
in classSetTestSuiteBuilder<E>
-
createSubsetSuite
final junit.framework.TestSuite createSubsetSuite(FeatureSpecificTestSuiteBuilder<?, ? extends OneSizeTestContainerGenerator<Collection<E>, E>> parentBuilder, DerivedCollectionGenerators.Bound from, DerivedCollectionGenerators.Bound to) Creates a suite whose set has some elements filtered out of view.Because the set 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
SortedSetTestSuiteBuilder<E> newBuilderUsing(TestSortedSetGenerator<E> delegate, DerivedCollectionGenerators.Bound to, DerivedCollectionGenerators.Bound from) Like using() but overrideable by NavigableSetTestSuiteBuilder.
-