Class AbstractSequentialPhaseManager
- java.lang.Object
-
- de.rwth.swc.coffee4j.engine.process.manager.sequential.AbstractSequentialPhaseManager
-
- All Implemented Interfaces:
PhaseManager
- Direct Known Subclasses:
DefaultGeneratingSequentialPhaseManager,DefaultTestingSequentialPhaseManager
public abstract class AbstractSequentialPhaseManager extends Object implements PhaseManager
Abstract class implementing thePhaseManagerInterface for Sequential CT. It provides general functionality and fields used by all sub-classes. Manages the phases: initial generation, execution and fault characterization
-
-
Field Summary
Fields Modifier and Type Field Description protected SequentialPhaseManagerConfigurationconfigurationprotected ExecutionContextexecutionContextprotected ExecutionPhaseexecutionPhaseprotected ExtensionExecutorextensionExecutorprotected FaultCharacterizationPhasefaultCharacterizationPhaseprotected SequentialGenerationContextgenerationContextprotected SequentialGenerationPhasegenerationPhase
-
Constructor Summary
Constructors Constructor Description AbstractSequentialPhaseManager(SequentialPhaseManagerConfiguration configuration)Creates a newAbstractSequentialPhaseManagerwith the supplied configuration
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidcollectErrorConstraintExceptionCausingTestInputs(Map<Combination,TestResult> executionResults)Template method implemented by error-constraint generating managers.protected voidcreateTestPhases()protected abstract voidexecuteClassificationPhase()Template method implemented by error-constraint generating managers.voidrun()Automates the combinatorial process.
-
-
-
Field Detail
-
configuration
protected SequentialPhaseManagerConfiguration configuration
-
executionContext
protected ExecutionContext executionContext
-
generationContext
protected SequentialGenerationContext generationContext
-
extensionExecutor
protected ExtensionExecutor extensionExecutor
-
executionPhase
protected ExecutionPhase executionPhase
-
generationPhase
protected SequentialGenerationPhase generationPhase
-
faultCharacterizationPhase
protected FaultCharacterizationPhase faultCharacterizationPhase
-
-
Constructor Detail
-
AbstractSequentialPhaseManager
public AbstractSequentialPhaseManager(SequentialPhaseManagerConfiguration configuration)
Creates a newAbstractSequentialPhaseManagerwith the supplied configuration- Parameters:
configuration- the configuration for the phase manager
-
-
Method Detail
-
run
public void run()
Automates the combinatorial process. Executes the execution callbacks before and after the test class. The rest of the combinatorial process is described as in the thesis "Development of an Automated Combinatorial Testing Framework"- Specified by:
runin interfacePhaseManager
-
createTestPhases
protected void createTestPhases()
-
collectErrorConstraintExceptionCausingTestInputs
protected abstract void collectErrorConstraintExceptionCausingTestInputs(Map<Combination,TestResult> executionResults)
Template method implemented by error-constraint generating managers.- Parameters:
executionResults- map containing all executedCombinations and the correspondingTestResults
-
executeClassificationPhase
protected abstract void executeClassificationPhase()
Template method implemented by error-constraint generating managers.
-
-