Class LoggingSequentialExecutionReporterForGeneration
- java.lang.Object
-
- de.rwth.swc.coffee4j.engine.process.report.sequential.LoggingSequentialExecutionReporter
-
- de.rwth.swc.coffee4j.engine.process.report.sequential.LoggingSequentialExecutionReporterForGeneration
-
- All Implemented Interfaces:
ExecutionReporter
,SequentialExecutionReporter
- Direct Known Subclasses:
LoggingSequentialExecutionReporterForGenerationJava
public class LoggingSequentialExecutionReporterForGeneration extends LoggingSequentialExecutionReporter implements SequentialExecutionReporter
-
-
Field Summary
Fields Modifier and Type Field Description protected CombinationFormatter
formatter
-
Fields inherited from class de.rwth.swc.coffee4j.engine.process.report.sequential.LoggingSequentialExecutionReporter
logger
-
-
Constructor Summary
Constructors Constructor Description LoggingSequentialExecutionReporterForGeneration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
faultCharacterizationStarted(TestInputGroupContext context, FaultCharacterizationAlgorithm algorithm)
Called if a fault characterization started for aTestInputGroup
.void
faultCharacterizationTestInputsGenerated(TestInputGroupContext context, List<Combination> testInputs)
Called if additional test inputs for the fault characterization process of oneTestInputGroup
have been generated by the algorithm given toSequentialExecutionReporter.faultCharacterizationStarted(TestInputGroupContext, FaultCharacterizationAlgorithm)
.protected void
printExceptionInducingCombinations(Map<Combination,Class<? extends Throwable>> exceptionInducingCombinations)
template method implemented by sub-classes reporting found exception-inducing combinationsprotected void
printWarning(Collection<Combination> failureInducingCombinations)
template method implemented by sub-classes reporting found exception-inducing combinations-
Methods inherited from class de.rwth.swc.coffee4j.engine.process.report.sequential.LoggingSequentialExecutionReporter
faultCharacterizationFinished, report, testInputExecutionFinished, testInputExecutionStarted, testInputGroupFinished, testInputGroupGenerated
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.rwth.swc.coffee4j.engine.report.ExecutionReporter
getReportLevel, modelModified, report, testInputExecutionFinished, testInputExecutionStarted
-
Methods inherited from interface de.rwth.swc.coffee4j.engine.report.SequentialExecutionReporter
faultCharacterizationFinished, testInputGroupFinished, testInputGroupGenerated
-
-
-
-
Field Detail
-
formatter
protected CombinationFormatter formatter
-
-
Method Detail
-
faultCharacterizationStarted
public void faultCharacterizationStarted(TestInputGroupContext context, FaultCharacterizationAlgorithm algorithm)
Description copied from interface:SequentialExecutionReporter
Called if a fault characterization started for aTestInputGroup
. The process will end again whenSequentialExecutionReporter.faultCharacterizationFinished(TestInputGroupContext, Map, Collection)
is called.- Specified by:
faultCharacterizationStarted
in interfaceSequentialExecutionReporter
- Overrides:
faultCharacterizationStarted
in classLoggingSequentialExecutionReporter
- Parameters:
context
- the context of the group for which fault characterization startedalgorithm
- the algorithm which will be used to characterize faults. This is a reference to the real algorithm. Do not modify as this will most likely have unintended side effects
-
printExceptionInducingCombinations
protected void printExceptionInducingCombinations(Map<Combination,Class<? extends Throwable>> exceptionInducingCombinations)
Description copied from class:LoggingSequentialExecutionReporter
template method implemented by sub-classes reporting found exception-inducing combinations- Overrides:
printExceptionInducingCombinations
in classLoggingSequentialExecutionReporter
- Parameters:
exceptionInducingCombinations
- exception-inducing combinations to print together with exceptions.
-
faultCharacterizationTestInputsGenerated
public void faultCharacterizationTestInputsGenerated(TestInputGroupContext context, List<Combination> testInputs)
Description copied from interface:SequentialExecutionReporter
Called if additional test inputs for the fault characterization process of oneTestInputGroup
have been generated by the algorithm given toSequentialExecutionReporter.faultCharacterizationStarted(TestInputGroupContext, FaultCharacterizationAlgorithm)
. This method can only be called (multiple times) between calls toSequentialExecutionReporter.faultCharacterizationStarted(TestInputGroupContext, FaultCharacterizationAlgorithm)
andSequentialExecutionReporter.faultCharacterizationFinished(TestInputGroupContext, Map, Collection)
.- Specified by:
faultCharacterizationTestInputsGenerated
in interfaceSequentialExecutionReporter
- Overrides:
faultCharacterizationTestInputsGenerated
in classLoggingSequentialExecutionReporter
- Parameters:
context
- the context of the group for which additional test inputs were generatedtestInputs
- all additionally generated test inputs
-
printWarning
protected void printWarning(Collection<Combination> failureInducingCombinations)
Description copied from class:LoggingSequentialExecutionReporter
template method implemented by sub-classes reporting found exception-inducing combinations- Overrides:
printWarning
in classLoggingSequentialExecutionReporter
- Parameters:
failureInducingCombinations
- found failure-inducing combinations.
-
-