Class ListTestSuiteBuilder<E>
java.lang.Object
com.google.common.collect.testing.FeatureSpecificTestSuiteBuilder<ListTestSuiteBuilder<E>, TestCollectionGenerator<E>>
com.google.common.collect.testing.PerCollectionSizeTestSuiteBuilder<ListTestSuiteBuilder<E>, TestCollectionGenerator<E>, Collection<E>, E>
com.google.common.collect.testing.AbstractCollectionTestSuiteBuilder<ListTestSuiteBuilder<E>, E>
com.google.common.collect.testing.ListTestSuiteBuilder<E>
@GwtIncompatible
public final class ListTestSuiteBuilder<E>
extends AbstractCollectionTestSuiteBuilder<ListTestSuiteBuilder<E>, E>
Creates, based on your criteria, a JUnit test suite that exhaustively tests a List
implementation.
- Author:
- George van den Driessche
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<junit.framework.TestSuite> createDerivedSuites(FeatureSpecificTestSuiteBuilder<?, ? extends OneSizeTestContainerGenerator<Collection<E>, E>> parentBuilder) junit.framework.TestSuiteSpecifiesCollectionFeature.KNOWN_ORDERfor all list tests, since lists have an iteration ordering corresponding to the insertion order.protected List<Class<? extends AbstractTester>> static <E> ListTestSuiteBuilder<E> using(TestListGenerator<E> generator) Methods inherited from class FeatureSpecificTestSuiteBuilder
checkCanCreate, formatFeatureSet, getFeatures, getName, getSetUp, getSubjectGenerator, getSuppressedTests, getTearDown, 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 junit.framework.TestSuitemakeSuiteForTesterClass(Class<? extends AbstractTester<?>> testerClass) Configures this builder produce a TestSuite with the given name.protected ListTestSuiteBuilder<E> self()suppressing(Method... methods) Prevents the given methods from being run as part of the test suite.suppressing(Collection<Method> methods) protected ListTestSuiteBuilder<E> usingGenerator(TestCollectionGenerator<E> 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
-
ListTestSuiteBuilder
public ListTestSuiteBuilder()
-
-
Method Details
-
using
-
getTesters
- Overrides:
getTestersin classAbstractCollectionTestSuiteBuilder<ListTestSuiteBuilder<E>, E>
-
createTestSuite
public junit.framework.TestSuite createTestSuite()SpecifiesCollectionFeature.KNOWN_ORDERfor all list tests, since lists have an iteration ordering corresponding to the insertion order.- Overrides:
createTestSuitein classPerCollectionSizeTestSuiteBuilder<ListTestSuiteBuilder<E>, TestCollectionGenerator<E>, Collection<E>, E>
-
createDerivedSuites
protected List<junit.framework.TestSuite> createDerivedSuites(FeatureSpecificTestSuiteBuilder<?, ? extends OneSizeTestContainerGenerator<Collection<E>, E>> parentBuilder) - Overrides:
createDerivedSuitesin classPerCollectionSizeTestSuiteBuilder<ListTestSuiteBuilder<E>, TestCollectionGenerator<E>, Collection<E>, E>
-