public class CombinatorialTestConsumerManager extends Object
ModelConverter and putting them into a provided consumer.
Uses a DelegatingModelBasedArgumentConverter and DelegatingExecutionReporter
and ExecutionReporterToGenerationReporterAdapter to convert between different representations and allow multiple converts
and reporter even though method in engine only accept one.| Constructor and Description |
|---|
CombinatorialTestConsumerManager(CombinatorialTestConsumerManagerConfiguration configuration,
java.util.function.Consumer<Combination> testInputConsumer,
InputParameterModel model)
Creates a new manager with the given configuration, consumer and model.
|
| Modifier and Type | Method and Description |
|---|---|
void |
generateAdditionalTestInputsWithResult(Combination testInput,
TestResult testResult)
Generates additional test inputs based on a new test result.
|
void |
generateInitialTests()
Generates the initial test inputs, converts them and propagates them to the consumer given in the constructor.
|
public CombinatorialTestConsumerManager(CombinatorialTestConsumerManagerConfiguration configuration, java.util.function.Consumer<Combination> testInputConsumer, InputParameterModel model)
configuration - all needed configuration for a combinatorial test. This is the part which can be reused
across different tests. Must not be nulltestInputConsumer - a consumer for all test inputs generated by the CombinatorialTestManager
provided by the configuration. Each test input is converted using a ModelConverter
generated by the provided
ModelConverterFactory.
This part is generally not reusable. Must not be nullmodel - the model which defines all parameters and constraints for a combinatorial test. This part
is generally not reusable. Must not be nullpublic void generateInitialTests()
public void generateAdditionalTestInputsWithResult(Combination testInput, TestResult testResult)
testInput - a test input. Must not be nulltestResult - the result of the test input. Must not be nullCopyright © 2019. All rights reserved.