public class CachingDelegatingCombinatorialTestManager extends Object implements CombinatorialTestManager
CombinatorialTestManager which does not generate test inputs by itself but delegates this to another
manager. However, it does add caching capability to any given manager. This means no test input is returned twice
across all two methods. For example, if the initial test input [0, 0, 0] has been returned, it will not be returned
again for fault characterization. Instead the cached result is used.
With an appropriate cache, results can even be shared over multiple runs if that should ever be desirable.| Constructor and Description |
|---|
CachingDelegatingCombinatorialTestManager(TestResultCache cache,
CombinatorialTestManager generator) |
| Modifier and Type | Method and Description |
|---|---|
List<int[]> |
generateAdditionalTestInputsWithResult(int[] testInput,
TestResult testResult)
Generates additional test inputs based on results of previous test inputs normally generated by either
CombinatorialTestManager.generateInitialTests() or this method in a previous iteration. |
List<int[]> |
generateInitialTests()
Generates all initial test inputs for execution.
|
public CachingDelegatingCombinatorialTestManager(TestResultCache cache, CombinatorialTestManager generator)
public List<int[]> generateInitialTests()
CombinatorialTestManagerCombinatorialTestManager.generateAdditionalTestInputsWithResult(int[], TestResult) should be used, as most front-ends won't
call CombinatorialTestManager.generateAdditionalTestInputsWithResult(int[], TestResult) if this returned no test input.generateInitialTests in interface CombinatorialTestManagerpublic List<int[]> generateAdditionalTestInputsWithResult(int[] testInput, TestResult testResult)
CombinatorialTestManagerCombinatorialTestManager.generateInitialTests() or this method in a previous iteration. For example, this functionality can be
used to implement dynamic test input generation or fault characterization (or a combination of both).generateAdditionalTestInputsWithResult in interface CombinatorialTestManagertestInput - the test input for which's result further test inputs should be generatedtestResult - the result of the test inputCopyright © 2019. All rights reserved.