Interface TestResultCache

  • All Known Implementing Classes:
    HashMapTestResultCache

    public interface TestResultCache
    A cache for test results to reduce unnecessary execution time if the same test input results are requested multiple times.
    • Method Detail

      • containsResultFor

        boolean containsResultFor​(IntArrayWrapper testInput)
        Parameters:
        testInput - for which a result could be needed. Must not be null
        Returns:
        Whether the cache contains the result of the given test input
        Throws:
        java.lang.NullPointerException - if testInput is null
      • getResultFor

        TestResult getResultFor​(IntArrayWrapper testInput)
        Parameters:
        testInput - for which the result is needed. Must not be null
        Returns:
        the result of the given test input. If containsResultFor(IntArrayWrapper) returns false for this test input, the behavior is not defined and depends on the actual implementation
        Throws:
        java.lang.NullPointerException - if testInput is null