Class DefaultFeedbackCheckingStrategy
- java.lang.Object
-
- de.rwth.swc.coffee4j.algorithmic.interleaving.feedback.DefaultFeedbackCheckingStrategy
-
- All Implemented Interfaces:
FeedbackCheckingStrategy
public class DefaultFeedbackCheckingStrategy extends Object implements FeedbackCheckingStrategy
Default Feedback Checking Strategy introduced in "An interleaving approach to combinatorial testing and failure-inducing interaction identification". A pre-defined number of checks are generated that are most-dissimilar to each other to increase the probability that a combination is classified correctly as failure-inducing.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FeedbackCheckingStrategyFactory
defaultCheckingStrategy()
Optional<int[]>
generateNextTestInputForChecking(int[] testInput, TestResult testResult)
Optional<int[]>
startFeedbackChecking(int[] candidate, int[] processedTestInput)
String
toString()
-
-
-
Method Detail
-
defaultCheckingStrategy
public static FeedbackCheckingStrategyFactory defaultCheckingStrategy()
- Returns:
- returns a factory for creating a
DefaultFeedbackCheckingStrategy
.
-
startFeedbackChecking
public Optional<int[]> startFeedbackChecking(int[] candidate, int[] processedTestInput)
- Specified by:
startFeedbackChecking
in interfaceFeedbackCheckingStrategy
- Parameters:
candidate
- possibly exception/failure-inducing combination to checkprocessedTestInput
- test input that contains possibly exception/failure-inducing combination- Returns:
- first test input used for checking possibly exception/failure-inducing combination (if present, otherwise empty Optional)
-
generateNextTestInputForChecking
public Optional<int[]> generateNextTestInputForChecking(int[] testInput, TestResult testResult)
- Specified by:
generateNextTestInputForChecking
in interfaceFeedbackCheckingStrategy
- Parameters:
testInput
- previously executed test inputtestResult
- result of previously executed test input- Returns:
- next test input that is most dissimilar from previously generated tests in checking phase. Empty optional, if maximal number of feedback checks is reached or previously executed test input passed which means that combination is not failure-inducing.
-
-