Package org.apache.accumulo.iteratortest
Class IteratorTestBase
- java.lang.Object
-
- org.apache.accumulo.iteratortest.IteratorTestBase
-
@TestInstance(PER_CLASS) public abstract class IteratorTestBase extends Object
A base test class for users to leverage to test their iterators.Users should extend this class and override its abstract methods to provide IteratorTestInput, IteratorTestOutput and a List<IteratorTestCase> which will all serve as the parameters for an iterator test case.
-
-
Constructor Summary
Constructors Constructor Description IteratorTestBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected Stream<IteratorTestCase>
builtinTestCases()
The List ofIteratorTestCase
to run the iterator againstprotected abstract Stream<IteratorTestParameters>
parameters()
void
testIterator(IteratorTestParameters params)
-
-
-
Method Detail
-
parameters
protected abstract Stream<IteratorTestParameters> parameters()
-
builtinTestCases
protected final Stream<IteratorTestCase> builtinTestCases()
The List ofIteratorTestCase
to run the iterator against
-
testIterator
@ParameterizedTest @MethodSource("parameters") public void testIterator(IteratorTestParameters params)
-
-