Class BiMapTestSuiteBuilder<K,V>
java.lang.Object
com.google.common.collect.testing.FeatureSpecificTestSuiteBuilder<BiMapTestSuiteBuilder<K,V>, TestBiMapGenerator<K,V>>
com.google.common.collect.testing.PerCollectionSizeTestSuiteBuilder<BiMapTestSuiteBuilder<K,V>, TestBiMapGenerator<K,V>, com.google.common.collect.BiMap<K,V>, Map.Entry<K,V>>
com.google.common.collect.testing.google.BiMapTestSuiteBuilder<K,V>
@GwtIncompatible
public class BiMapTestSuiteBuilder<K,V>
extends PerCollectionSizeTestSuiteBuilder<BiMapTestSuiteBuilder<K,V>, TestBiMapGenerator<K,V>, com.google.common.collect.BiMap<K,V>, Map.Entry<K,V>>
Creates, based on your criteria, a JUnit test suite that exhaustively tests a
BiMap
implementation.- Author:
- Louis Wasserman
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<junit.framework.TestSuite> createDerivedSuites(FeatureSpecificTestSuiteBuilder<?, ? extends OneSizeTestContainerGenerator<com.google.common.collect.BiMap<K, V>, Map.Entry<K, V>>> parentBuilder) protected List<Class<? extends AbstractTester>> static <K,V> BiMapTestSuiteBuilder <K, V> using(TestBiMapGenerator<K, V> 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 BiMapTestSuiteBuilder<K, V> self()suppressing(Method... methods) Prevents the given methods from being run as part of the test suite.suppressing(Collection<Method> methods) protected BiMapTestSuiteBuilder<K, V> usingGenerator(TestBiMapGenerator<K, V> 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
-
BiMapTestSuiteBuilder
public BiMapTestSuiteBuilder()
-
-
Method Details
-
using
-
getTesters
- Specified by:
getTestersin classFeatureSpecificTestSuiteBuilder<BiMapTestSuiteBuilder<K,V>, TestBiMapGenerator<K, V>>
-
createDerivedSuites
protected List<junit.framework.TestSuite> createDerivedSuites(FeatureSpecificTestSuiteBuilder<?, ? extends OneSizeTestContainerGenerator<com.google.common.collect.BiMap<K, V>, Map.Entry<K, V>>> parentBuilder) - Overrides:
createDerivedSuitesin classPerCollectionSizeTestSuiteBuilder<BiMapTestSuiteBuilder<K,V>, TestBiMapGenerator<K, V>, com.google.common.collect.BiMap<K, V>, Map.Entry<K, V>>
-