public interface TestResultCache
| Modifier and Type | Method and Description |
|---|---|
void |
addResultFor(IntArrayWrapper testInput,
TestResult result)
Adds a result to the cache so it may later be retrieved via
getResultFor(IntArrayWrapper). |
boolean |
containsResultFor(IntArrayWrapper testInput) |
TestResult |
getResultFor(IntArrayWrapper testInput) |
boolean containsResultFor(IntArrayWrapper testInput)
testInput - for which a result could be needed. Must not be nullNullPointerException - if testInput is nullTestResult getResultFor(IntArrayWrapper testInput)
testInput - for which the result is needed. Must not be nullcontainsResultFor(IntArrayWrapper) returns false for this test input, the behavior is not
defined and depends on the actual implementationNullPointerException - if testInput is nullvoid addResultFor(IntArrayWrapper testInput, TestResult result)
getResultFor(IntArrayWrapper).
After a testInput has been added here, containsResultFor(IntArrayWrapper) should returned true
if called for the same testInput.testInput - for which the result should be savedresult - of the test inputCopyright © 2019. All rights reserved.