Class SetTestSuiteBuilder<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>
- Direct Known Subclasses:
SortedSetTestSuiteBuilder
@GwtIncompatible
public class SetTestSuiteBuilder<E>
extends AbstractCollectionTestSuiteBuilder<SetTestSuiteBuilder<E>, E>
Creates, based on your criteria, a JUnit test suite that exhaustively tests a Set 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) protected List<Class<? extends AbstractTester>> static <E> SetTestSuiteBuilder<E> using(TestSetGenerator<E> generator) Methods inherited from class PerCollectionSizeTestSuiteBuilder
createTestSuiteModifier and TypeMethodDescriptionjunit.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, 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 SetTestSuiteBuilder<E> self()suppressing(Method... methods) Prevents the given methods from being run as part of the test suite.suppressing(Collection<Method> methods) protected SetTestSuiteBuilder<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
-
SetTestSuiteBuilder
public SetTestSuiteBuilder()
-
-
Method Details
-
using
-
getTesters
- Overrides:
getTestersin classAbstractCollectionTestSuiteBuilder<SetTestSuiteBuilder<E>, E>
-
createDerivedSuites
protected List<junit.framework.TestSuite> createDerivedSuites(FeatureSpecificTestSuiteBuilder<?, ? extends OneSizeTestContainerGenerator<Collection<E>, E>> parentBuilder) - Overrides:
createDerivedSuitesin classPerCollectionSizeTestSuiteBuilder<SetTestSuiteBuilder<E>, TestCollectionGenerator<E>, Collection<E>, E>
-