Class QueueTestSuiteBuilder<E>
- java.lang.Object
-
- com.google.common.collect.testing.FeatureSpecificTestSuiteBuilder<B,G>
-
- com.google.common.collect.testing.PerCollectionSizeTestSuiteBuilder<B,TestCollectionGenerator<E>,Collection<E>,E>
-
- com.google.common.collect.testing.AbstractCollectionTestSuiteBuilder<QueueTestSuiteBuilder<E>,E>
-
- com.google.common.collect.testing.QueueTestSuiteBuilder<E>
-
@GwtIncompatible public final class QueueTestSuiteBuilder<E> extends AbstractCollectionTestSuiteBuilder<QueueTestSuiteBuilder<E>,E>
Creates, based on your criteria, a JUnit test suite that exhaustively tests a queue implementation.- Author:
- Jared Levy
-
-
Constructor Summary
Constructors Constructor Description QueueTestSuiteBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<Class<? extends AbstractTester>>
getTesters()
QueueTestSuiteBuilder<E>
skipCollectionTests()
Specify whether to skip the general collection tests.static <E> QueueTestSuiteBuilder<E>
using(TestQueueGenerator<E> generator)
-
Methods inherited from class com.google.common.collect.testing.PerCollectionSizeTestSuiteBuilder
createDerivedSuites, createTestSuite
-
Methods inherited from class com.google.common.collect.testing.FeatureSpecificTestSuiteBuilder
checkCanCreate, formatFeatureSet, getFeatures, getName, getSetUp, getSubjectGenerator, getSuppressedTests, getTearDown, makeSuiteForTesterClass, named, self, suppressing, suppressing, usingGenerator, withFeatures, withFeatures, withSetUp, withTearDown
-
-
-
-
Constructor Detail
-
QueueTestSuiteBuilder
public QueueTestSuiteBuilder()
-
-
Method Detail
-
using
public static <E> QueueTestSuiteBuilder<E> using(TestQueueGenerator<E> generator)
-
skipCollectionTests
public QueueTestSuiteBuilder<E> skipCollectionTests()
Specify whether to skip the general collection tests. Call this method when testing a collection that's both a queue and a list, to avoid running the common collection tests twice. By default, collection tests do run.
-
getTesters
protected List<Class<? extends AbstractTester>> getTesters()
- Overrides:
getTesters
in classAbstractCollectionTestSuiteBuilder<QueueTestSuiteBuilder<E>,E>
-
-