Class PerCollectionSizeTestSuiteBuilder<B extends PerCollectionSizeTestSuiteBuilder<B,G,T,E>, G extends TestContainerGenerator<T,E>, T, E>
java.lang.Object
com.google.common.collect.testing.FeatureSpecificTestSuiteBuilder<B,G>
com.google.common.collect.testing.PerCollectionSizeTestSuiteBuilder<B,G,T,E>
- Type Parameters:
B- The concrete type of this builder (the 'self-type'). All the Builder methods of this class (such asFeatureSpecificTestSuiteBuilder.named(String)) return this type, so that Builder methods of more derived classes can be chained onto them without casting.G- The type of the generator to be passed to testers in the generated test suite. An instance of G should somehow provide an instance of the class under test, plus any other information required to parameterize the test.
- Direct Known Subclasses:
AbstractCollectionTestSuiteBuilder, BiMapTestSuiteBuilder, MapTestSuiteBuilder, MultimapTestSuiteBuilder
@GwtIncompatible
public abstract class PerCollectionSizeTestSuiteBuilder<B extends PerCollectionSizeTestSuiteBuilder<B,G,T,E>, G extends TestContainerGenerator<T,E>, T, E>
extends FeatureSpecificTestSuiteBuilder<B,G>
This builder creates a composite test suite, containing a separate test suite for each
CollectionSize present in the features specified by FeatureSpecificTestSuiteBuilder.withFeatures(Feature...).- Author:
- George van den Driessche
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<junit.framework.TestSuite> createDerivedSuites(FeatureSpecificTestSuiteBuilder<?, ? extends OneSizeTestContainerGenerator<T, E>> parentBuilder) junit.framework.TestSuiteCreates a runnable JUnit test suite based on the criteria already given.Methods inherited from class FeatureSpecificTestSuiteBuilder
checkCanCreate, formatFeatureSet, getFeatures, getName, getSetUp, getSubjectGenerator, getSuppressedTests, getTearDown, getTesters, makeSuiteForTesterClass, named, self, suppressing, suppressing, usingGenerator, withFeatures, withFeatures, withSetUp, withTearDownModifier and TypeMethodDescriptionprotected voidThrowIllegalStateExceptionifFeatureSpecificTestSuiteBuilder.createTestSuite()can't be called yet.protected static StringformatFeatureSet(Set<? extends Feature<?>> features) getName()@Nullable RunnablegetSetUp()@Nullable Runnableprotected abstract List<Class<? extends AbstractTester>> protected junit.framework.TestSuitemakeSuiteForTesterClass(Class<? extends AbstractTester<?>> testerClass) Configures this builder produce a TestSuite with the given name.protected Bself()suppressing(Method... methods) Prevents the given methods from being run as part of the test suite.suppressing(Collection<Method> methods) protected BusingGenerator(G subjectGenerator) withFeatures(Feature<?>... features) Configures this builder to produce tests appropriate for the given features.withFeatures(Iterable<? extends Feature<?>> features) withTearDown(@Nullable Runnable tearDown)
-
Constructor Details
-
PerCollectionSizeTestSuiteBuilder
public PerCollectionSizeTestSuiteBuilder()
-
-
Method Details
-
createTestSuite
public junit.framework.TestSuite createTestSuite()Creates a runnable JUnit test suite based on the criteria already given.- Overrides:
createTestSuitein classFeatureSpecificTestSuiteBuilder<B extends PerCollectionSizeTestSuiteBuilder<B,G, T, E>, G extends TestContainerGenerator<T, E>>
-
createDerivedSuites
protected List<junit.framework.TestSuite> createDerivedSuites(FeatureSpecificTestSuiteBuilder<?, ? extends OneSizeTestContainerGenerator<T, E>> parentBuilder)
-