Class DefaultInterleavingManager

    • Method Detail

      • terminateInterleavingGroup

        protected void terminateInterleavingGroup()
        Called when all t-tuples are covered. Post-processing possible. At least reporter.interleavingGroupFinished must be called.
      • terminateIdentification

        protected void terminateIdentification()
        split found combinations into different sets. At least failureInducingCombinationsToCheck must be filled and reporter.identificationFinished must be called.
      • noCombinationsToBeCheckedPresent

        protected boolean noCombinationsToBeCheckedPresent()
        Returns:
        true iff no combinations to check are available.
      • resetCombinationsToBeChecked

        protected void resetCombinationsToBeChecked()
        Clear the set of combinations for all types of combinations that need to be checked. At least failureInducingCombinationsToCheck must be reset.
      • generateNextTestInput

        public Optional<int[]> generateNextTestInput​(int[] testInput,
                                                     TestResult result)
        Specified by:
        generateNextTestInput in interface InterleavingCombinatorialTestManager
        Parameters:
        testInput - previously executed test input. Null if called for the first time.
        result - result of previously executed test input. Null if called for the first time.
        Returns:
        next test input needed for the current phase. Empty Optional, if
        • all t-tuples covered,
        • or possibly exception/failure-inducing combination is identified,
        • or feedback-checking finished.
      • generateNextTestInput

        protected Optional<int[]> generateNextTestInput()
        Method used when a new test input is needed during Generation-Phase.
        Returns:
        next test input. Null, if all valid t-tuples are covered.
      • generateNextTestInputForIdentification

        protected Optional<int[]> generateNextTestInputForIdentification​(int[] testInput,
                                                                         TestResult result)
        Method used when a new test input is needed during Identification-Phase.
        Parameters:
        testInput - previously executed test input.
        result - result of previously executed test input.
        Returns:
        next test input. Null, if possibly failure-inducing combination is identified.
      • generateNextTestInputForFeedbackChecking

        protected Optional<int[]> generateNextTestInputForFeedbackChecking​(int[] testInput,
                                                                           TestResult result)
        Method used when a new test input is needed during Feedback-Checking-Phase.
        Parameters:
        testInput - previously executed test input.
        result - result of previously executed test input.
        Returns:
        next test input. Null, if maximum number of checks is executed or combination is not failure-inducing.