Interface IteratorTestCase
-
- All Known Implementing Classes:
DeepCopyTestCase
,InstantiationTestCase
,IsolatedDeepCopiesTestCase
,MultipleHasTopCalls
,OutputVerifyingTestCase
,ReSeekTestCase
,YieldingTestCase
public interface IteratorTestCase
An interface that accepts some input for testing aSortedKeyValueIterator
, runs the specific implementation of the test and returns the outcome from that iterator.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IteratorTestOutput
test(IteratorTestInput testInput)
Run the implementation's test against the given input.boolean
verify(IteratorTestOutput expected, IteratorTestOutput actual)
Compute whether or not the expected and actual output is a success or failure for this implementation.
-
-
-
Method Detail
-
test
IteratorTestOutput test(IteratorTestInput testInput)
Run the implementation's test against the given input.- Parameters:
testInput
- The input to test.- Returns:
- The output of the test with the input.
-
verify
boolean verify(IteratorTestOutput expected, IteratorTestOutput actual)
Compute whether or not the expected and actual output is a success or failure for this implementation.- Parameters:
expected
- The expected output from the user.actual
- The actual output from the test- Returns:
- True if the test case passes, false if it doesn't.
-
-