Class 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 Detail

      • startFeedbackChecking

        public Optional<int[]> startFeedbackChecking​(int[] candidate,
                                                     int[] processedTestInput)
        Specified by:
        startFeedbackChecking in interface FeedbackCheckingStrategy
        Parameters:
        candidate - possibly exception/failure-inducing combination to check
        processedTestInput - 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 interface FeedbackCheckingStrategy
        Parameters:
        testInput - previously executed test input
        testResult - 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.