Class ConcurrentMapTestSuiteBuilder<K,V>
java.lang.Object
com.google.common.collect.testing.FeatureSpecificTestSuiteBuilder<MapTestSuiteBuilder<K,V>, TestMapGenerator<K,V>>
com.google.common.collect.testing.PerCollectionSizeTestSuiteBuilder<MapTestSuiteBuilder<K,V>, TestMapGenerator<K,V>, Map<K,V>, Map.Entry<K,V>>
com.google.common.collect.testing.MapTestSuiteBuilder<K,V>
com.google.common.collect.testing.ConcurrentMapTestSuiteBuilder<K,V>
Creates, based on your criteria, a JUnit test suite that exhaustively tests a ConcurrentMap
implementation.
- Author:
- Louis Wasserman
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<Class<? extends AbstractTester>> static <K,V> ConcurrentMapTestSuiteBuilder <K, V> using(TestMapGenerator<K, V> generator) Methods inherited from class MapTestSuiteBuilder
computeCommonDerivedCollectionFeatures, createDerivedEntrySetSuite, createDerivedKeySetSuite, createDerivedSuites, createDerivedValueCollectionSuiteModifier and TypeMethodDescriptioncomputeCommonDerivedCollectionFeatures(Set<Feature<?>> mapFeatures) protected SetTestSuiteBuilder<Map.Entry<K, V>> createDerivedEntrySetSuite(TestSetGenerator<Map.Entry<K, V>> entrySetGenerator) protected SetTestSuiteBuilder<K> createDerivedKeySetSuite(TestSetGenerator<K> keySetGenerator) protected List<junit.framework.TestSuite> createDerivedSuites(FeatureSpecificTestSuiteBuilder<?, ? extends OneSizeTestContainerGenerator<Map<K, V>, Map.Entry<K, V>>> parentBuilder) protected CollectionTestSuiteBuilder<V> createDerivedValueCollectionSuite(TestCollectionGenerator<V> valueCollectionGenerator) 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 MapTestSuiteBuilder<K, V> self()suppressing(Method... methods) Prevents the given methods from being run as part of the test suite.suppressing(Collection<Method> methods) protected MapTestSuiteBuilder<K, V> usingGenerator(TestMapGenerator<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
-
ConcurrentMapTestSuiteBuilder
public ConcurrentMapTestSuiteBuilder()
-
-
Method Details
-
using
-
getTesters
- Overrides:
getTestersin classMapTestSuiteBuilder<K,V>
-