Class AbstractGeneratingInterleavingManager

    • Field Detail

      • minimalExceptionInducingCombinations

        protected Map<int[],​Class<? extends Throwable>> minimalExceptionInducingCombinations
      • minimalExceptionInducingCombinationsToCheck

        protected Set<int[]> minimalExceptionInducingCombinationsToCheck
      • failureInducingCombinationsToCheck

        protected Set<int[]> failureInducingCombinationsToCheck
      • failureInducingCombinations

        protected final Set<int[]> failureInducingCombinations
      • combinationsToCheck

        protected final List<int[]> combinationsToCheck
      • currentPhase

        protected Phase currentPhase
      • testInputHasFailed

        protected boolean testInputHasFailed
    • Method Detail

      • 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.
      • postProcessExceptionInducingCombinations

        protected List<int[]> postProcessExceptionInducingCombinations()
      • 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.
      • resetCombinationsToBeChecked

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

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

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

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