Class SequentialExecutionReporterToGenerationReporterAdapter
- java.lang.Object
-
- de.rwth.swc.coffee4j.engine.process.phase.sequential.generation.SequentialExecutionReporterToGenerationReporterAdapter
-
- All Implemented Interfaces:
Reporter
,GenerationReporter
public class SequentialExecutionReporterToGenerationReporterAdapter extends Object implements GenerationReporter
This is an exact copy of the DelegatingModelBasedArgumentConverter from the Model Module
-
-
Constructor Summary
Constructors Constructor Description SequentialExecutionReporterToGenerationReporterAdapter(SequentialExecutionReporter reporter, ArgumentConverter argumentConverter, ModelConverter modelConverter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
faultCharacterizationFinished(TestInputGroup testInputGroup, Map<int[],Class<? extends Throwable>> exceptionInducingCombinations, Set<int[]> possiblyFailureInducingCombinations)
Called after all fault characterization has been finished.void
faultCharacterizationStarted(TestInputGroup testInputGroup, FaultCharacterizationAlgorithm algorithm)
Called if fault characterization for the given group has started.void
faultCharacterizationTestInputsGenerated(TestInputGroup testInputGroup, List<int[]> testInputs)
Called if new test inputs have been generated by theFaultCharacterizationAlgorithm
provided toGenerationReporter.faultCharacterizationStarted(TestInputGroup, FaultCharacterizationAlgorithm)
.void
report(ReportLevel level, Report report)
Reports the givenReport
at the specified level.void
report(ReportLevel level, Supplier<Report> reportSupplier)
This method has the same intentions asReporter.report(ReportLevel, Report)
, but a supplier is given.void
testInputGroupFinished(TestInputGroup testInputGroup)
Called if all operations for aTestInputGroup
are finished.void
testInputGroupGenerated(TestInputGroup testInputGroup, TestInputGroupGenerator generator)
Called if a newTestInputGroup
has been generated by aTestInputGroupGenerator
.-
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.algorithmic.report.Reporter
reportAssumptionSatisfaction, reportAssumptionViolation, reportDebug, reportDebug, reportError, reportError, reportFatal, reportFatal, reportInfo, reportInfo, reportTrace, reportTrace, reportWarn, reportWarn
-
-
-
-
Constructor Detail
-
SequentialExecutionReporterToGenerationReporterAdapter
public SequentialExecutionReporterToGenerationReporterAdapter(SequentialExecutionReporter reporter, ArgumentConverter argumentConverter, ModelConverter modelConverter)
-
-
Method Detail
-
testInputGroupGenerated
public void testInputGroupGenerated(TestInputGroup testInputGroup, TestInputGroupGenerator generator)
Description copied from interface:GenerationReporter
Called if a newTestInputGroup
has been generated by aTestInputGroupGenerator
. This is only called once perTestInputGroup
, and the identifier can be used in all other methods to connect calls for the same group.- Specified by:
testInputGroupGenerated
in interfaceGenerationReporter
- Parameters:
testInputGroup
- the group which was generatedgenerator
- the generator which generated the given group
-
testInputGroupFinished
public void testInputGroupFinished(TestInputGroup testInputGroup)
Description copied from interface:GenerationReporter
Called if all operations for aTestInputGroup
are finished. After this has been called it is guaranteed that no further test inputs are generated for the group, so no other methods will be called for the same group. This is needed additionally toGenerationReporter.faultCharacterizationFinished(TestInputGroup, Map, Set)
since some groups may disable fault characterization and a reporter still needs to be notified after the group is finished. If fault characterization is used for the group,GenerationReporter.faultCharacterizationFinished(TestInputGroup, Map, Set)
has the same meaning.- Specified by:
testInputGroupFinished
in interfaceGenerationReporter
- Parameters:
testInputGroup
- the group which has been finished
-
faultCharacterizationStarted
public void faultCharacterizationStarted(TestInputGroup testInputGroup, FaultCharacterizationAlgorithm algorithm)
Description copied from interface:GenerationReporter
Called if fault characterization for the given group has started. Consequently, this method is only called once perTestInputGroup
, and never if fault characterization is not enabled.- Specified by:
faultCharacterizationStarted
in interfaceGenerationReporter
- Parameters:
testInputGroup
- the group for which the characterization process startedalgorithm
- the algorithm which will be used to perform fault characterization. Since this is the same instance as used in the test, implementing classes could theoretically modify it, but is is strongly advised not to modify this algorithm because many unintended side effects could happen.
-
faultCharacterizationFinished
public void faultCharacterizationFinished(TestInputGroup testInputGroup, Map<int[],Class<? extends Throwable>> exceptionInducingCombinations, Set<int[]> possiblyFailureInducingCombinations)
Description copied from interface:GenerationReporter
Called after all fault characterization has been finished. Directly after this methodGenerationReporter.testInputGroupFinished(TestInputGroup)
will be called.- Specified by:
faultCharacterizationFinished
in interfaceGenerationReporter
- Parameters:
testInputGroup
- the group for which fault characterization has been finishedexceptionInducingCombinations
- all exception-inducing combinations found.possiblyFailureInducingCombinations
- all failure inducing combinations found. These may or may not be ordered depending of the algorithm used. They also do not necessarily contain combinations guaranteed to be failure-inducing but rather those "most probably failure-inducing"
-
faultCharacterizationTestInputsGenerated
public void faultCharacterizationTestInputsGenerated(TestInputGroup testInputGroup, List<int[]> testInputs)
Description copied from interface:GenerationReporter
Called if new test inputs have been generated by theFaultCharacterizationAlgorithm
provided toGenerationReporter.faultCharacterizationStarted(TestInputGroup, FaultCharacterizationAlgorithm)
. This method may be called multiple times or never depending on the definition of a combinatorial test. It will only ever be called between calls toGenerationReporter.faultCharacterizationStarted(TestInputGroup, FaultCharacterizationAlgorithm)
andGenerationReporter.faultCharacterizationFinished(TestInputGroup, Map, Set)
.- Specified by:
faultCharacterizationTestInputsGenerated
in interfaceGenerationReporter
- Parameters:
testInputGroup
- the group for which further test inputs were generated for fault characterizationtestInputs
- all generated test inputs
-
report
public void report(ReportLevel level, Report report)
Description copied from interface:Reporter
-
report
public void report(ReportLevel level, Supplier<Report> reportSupplier)
Description copied from interface:Reporter
This method has the same intentions asReporter.report(ReportLevel, Report)
, but a supplier is given. If any big calculations need to be performed for aReport
generation this method can be used to guarantee lazy de.rwth.swc.coffee4j.evaluation only if aReporter
is really interested in the report of the given level.
-
-