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 voidfaultCharacterizationFinished(TestInputGroup testInputGroup, Map<int[],Class<? extends Throwable>> exceptionInducingCombinations, Set<int[]> possiblyFailureInducingCombinations)Called after all fault characterization has been finished.voidfaultCharacterizationStarted(TestInputGroup testInputGroup, FaultCharacterizationAlgorithm algorithm)Called if fault characterization for the given group has started.voidfaultCharacterizationTestInputsGenerated(TestInputGroup testInputGroup, List<int[]> testInputs)Called if new test inputs have been generated by theFaultCharacterizationAlgorithmprovided toGenerationReporter.faultCharacterizationStarted(TestInputGroup, FaultCharacterizationAlgorithm).voidreport(ReportLevel level, Report report)Reports the givenReportat the specified level.voidreport(ReportLevel level, Supplier<Report> reportSupplier)This method has the same intentions asReporter.report(ReportLevel, Report), but a supplier is given.voidtestInputGroupFinished(TestInputGroup testInputGroup)Called if all operations for aTestInputGroupare finished.voidtestInputGroupGenerated(TestInputGroup testInputGroup, TestInputGroupGenerator generator)Called if a newTestInputGrouphas 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:GenerationReporterCalled if a newTestInputGrouphas 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:
testInputGroupGeneratedin 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:GenerationReporterCalled if all operations for aTestInputGroupare 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:
testInputGroupFinishedin interfaceGenerationReporter- Parameters:
testInputGroup- the group which has been finished
-
faultCharacterizationStarted
public void faultCharacterizationStarted(TestInputGroup testInputGroup, FaultCharacterizationAlgorithm algorithm)
Description copied from interface:GenerationReporterCalled 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:
faultCharacterizationStartedin 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:GenerationReporterCalled after all fault characterization has been finished. Directly after this methodGenerationReporter.testInputGroupFinished(TestInputGroup)will be called.- Specified by:
faultCharacterizationFinishedin 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:GenerationReporterCalled if new test inputs have been generated by theFaultCharacterizationAlgorithmprovided 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:
faultCharacterizationTestInputsGeneratedin 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:ReporterThis method has the same intentions asReporter.report(ReportLevel, Report), but a supplier is given. If any big calculations need to be performed for aReportgeneration this method can be used to guarantee lazy de.rwth.swc.coffee4j.evaluation only if aReporteris really interested in the report of the given level.
-
-