Class MultisetTestSuiteBuilder<E>
java.lang.Object
com.google.common.collect.testing.FeatureSpecificTestSuiteBuilder<MultisetTestSuiteBuilder<E>, TestCollectionGenerator<E>>
com.google.common.collect.testing.PerCollectionSizeTestSuiteBuilder<MultisetTestSuiteBuilder<E>, TestCollectionGenerator<E>, Collection<E>, E>
com.google.common.collect.testing.AbstractCollectionTestSuiteBuilder<MultisetTestSuiteBuilder<E>, E>
com.google.common.collect.testing.google.MultisetTestSuiteBuilder<E>
- Direct Known Subclasses:
SortedMultisetTestSuiteBuilder
@GwtIncompatible
public class MultisetTestSuiteBuilder<E>
extends AbstractCollectionTestSuiteBuilder<MultisetTestSuiteBuilder<E>, E>
Creates, based on your criteria, a JUnit test suite that exhaustively tests a
Multiset
implementation.- Author:
- Jared Levy, Louis Wasserman
-
Nested Class Summary
Nested Classes -
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> MultisetTestSuiteBuilder<E> using(TestMultisetGenerator<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 MultisetTestSuiteBuilder<E> self()suppressing(Method... methods) Prevents the given methods from being run as part of the test suite.suppressing(Collection<Method> methods) protected MultisetTestSuiteBuilder<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
-
MultisetTestSuiteBuilder
public MultisetTestSuiteBuilder()
-
-
Method Details
-
using
-
getTesters
- Overrides:
getTestersin classAbstractCollectionTestSuiteBuilder<MultisetTestSuiteBuilder<E>, E>
-
createDerivedSuites
protected List<junit.framework.TestSuite> createDerivedSuites(FeatureSpecificTestSuiteBuilder<?, ? extends OneSizeTestContainerGenerator<Collection<E>, E>> parentBuilder) - Overrides:
createDerivedSuitesin classPerCollectionSizeTestSuiteBuilder<MultisetTestSuiteBuilder<E>, TestCollectionGenerator<E>, Collection<E>, E>
-