Interface ResultCache
-
- All Known Implementing Classes:
HashMapResultCache
public interface ResultCacheCache for results of executed test inputs to reduce the execution time. As soon as a test inputCombinationis executed, theTestResultis stored in the cache. If theTestResultfor an already executed test input is requested, theTestResultis loaded from cache instead of re-executing the test input.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddResultIfAbsentFor(Combination testInput, TestResult result)booleancontainsResultFor(Combination testInput)TestResultgetResultFor(Combination testInput)
-
-
-
Method Detail
-
containsResultFor
boolean containsResultFor(Combination testInput)
- Parameters:
testInput- test input to check whether a result is present for.- Returns:
- true iff result for test input is present.
-
getResultFor
TestResult getResultFor(Combination testInput)
- Parameters:
testInput- test input to load a result for.- Returns:
- result for the requested test input.
-
addResultIfAbsentFor
void addResultIfAbsentFor(Combination testInput, TestResult result)
- Parameters:
testInput- test input to store a result for.result- result to be stored.
-
-