T
- the output data model typeS
- the implementation class typepublic abstract class FlowDriverOutput<T,S extends FlowDriverOutput<T,S>> extends DriverOutputBase<T>
Constructor and Description |
---|
FlowDriverOutput(Class<?> callerClass,
TestDataToolProvider testTools,
String name,
Class<T> modelType)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
S |
dumpActual(Class<? extends DataFormat<? super T>> formatClass,
File outputPath)
Enables to store the result data set of this output.
|
S |
dumpActual(DataModelSinkFactory factory)
Sets the result data sink for this output.
|
S |
dumpActual(File outputPath)
Enables to store the result data set of this output.
|
S |
dumpActual(String outputPath)
Enables to store the result data set of this output.
|
S |
dumpDifference(DifferenceSinkFactory factory)
Sets the result differences sink for this output.
|
S |
dumpDifference(File outputPath)
Enables to store the result differences of this output.
|
S |
dumpDifference(String outputPath)
Enables to store the result differences of this output.
|
S |
filter(UnaryOperator<DataModelSource> filter)
Sets the result data set filter for this output.
|
protected abstract S |
getThis()
Returns this object.
|
S |
prepare(Class<? extends DataFormat<? super T>> formatClass,
File sourceFile)
Sets the test data set for this input.
|
S |
prepare(Class<? extends DataFormat<? super T>> formatClass,
String sourcePath)
Sets the test data set for this input.
|
S |
prepare(DataModelSourceFactory factory)
Sets the initial data set for this output.
|
S |
prepare(DataModelSourceFactory factory,
Consumer<? super T> transformer)
Sets the test data set for this output.
|
S |
prepare(Iterable<? extends T> objects)
Sets the initial data set for this output.
|
S |
prepare(Provider<? extends Source<? extends T>> provider)
Sets the initial data set for this output.
|
S |
prepare(String sourcePath)
Sets the initial data set for this output.
|
S |
transform(Consumer<? super T> transformer)
Enables to transform the result data before verifying the results of this output.
|
S |
transform(ModelTransformer<? super T> transformer)
Enables to transform the result data before verifying the results of this output.
|
S |
verify(Class<? extends DataFormat<? super T>> formatClass,
File expectedFile,
ModelVerifier<? super T> modelVerifier)
Enables to verify the results of this output.
|
S |
verify(Class<? extends DataFormat<? super T>> formatClass,
File expectedFile,
String verifyRulePath)
Enables to verify the results of this output.
|
S |
verify(Class<? extends DataFormat<? super T>> formatClass,
File expectedFile,
String verifyRulePath,
ModelTester<? super T> tester)
Enables to verify the results of this output.
|
S |
verify(Class<? extends DataFormat<? super T>> formatClass,
String expectedPath,
ModelVerifier<? super T> modelVerifier)
Enables to verify the results of this output.
|
S |
verify(Class<? extends DataFormat<? super T>> formatClass,
String expectedPath,
String verifyRulePath)
Enables to verify the results of this output.
|
S |
verify(Class<? extends DataFormat<? super T>> formatClass,
String expectedPath,
String verifyRulePath,
ModelTester<? super T> tester)
Enables to verify the results of this output.
|
S |
verify(DataModelSourceFactory expectedFactory,
ModelVerifier<? super T> modelVerifier)
Enables to verify the results of this output.
|
S |
verify(DataModelSourceFactory expectedFactory,
String verifyRulePath)
Enables to verify the results of this output.
|
S |
verify(DataModelSourceFactory expectedFactory,
String verifyRulePath,
ModelTester<? super T> tester)
Enables to verify the results of this output.
|
S |
verify(Iterable<? extends T> expectedObjects,
ModelVerifier<? super T> modelVerifier)
Enables to verify the results of this output.
|
S |
verify(Iterable<? extends T> expectedObjects,
String verifyRulePath)
Enables to verify the results of this output.
|
S |
verify(Iterable<? extends T> expectedObjects,
String verifyRulePath,
ModelTester<? super T> tester)
Enables to verify the results of this output.
|
S |
verify(Provider<? extends Source<? extends T>> expectedProvider,
ModelVerifier<? super T> modelVerifier)
Enables to verify the results of this output.
|
S |
verify(Provider<? extends Source<? extends T>> expectedProvider,
String verifyRulePath)
Enables to verify the results of this output.
|
S |
verify(Provider<? extends Source<? extends T>> expectedProvider,
String verifyRulePath,
ModelTester<? super T> tester)
Enables to verify the results of this output.
|
S |
verify(String expectedPath,
ModelVerifier<? super T> modelVerifier)
Enables to verify the results of this output.
|
S |
verify(String expectedPath,
String verifyRulePath)
Enables to verify the results of this output.
|
S |
verify(String expectedPath,
String verifyRulePath,
ModelTester<? super T> tester)
Enables to verify the results of this output.
|
S |
verify(VerifierFactory factory)
Sets how verify the execution results for this output.
|
S |
with(Consumer<? super S> configurator)
Configures this object.
|
getDifferenceSink, getResultSink, getVerifier, setDifferenceSink, setResultFilter, setResultSink, setVerifier, toDataModelSinkFactory, toDataModelSinkFactory, toDifferenceSinkFactory, toDifferenceSinkFactory, toVerifierFactory, toVerifyRuleFactory, toVerifyRuleFactory
getCallerClass, getDataModelDefinition, getModelType, getName, getSource, getTestTools, setSource, toDataModelSourceFactory, toDataModelSourceFilter
toDataModelSinkFactory, toDataModelSourceFactory, toDataModelSourceFactory, toDataModelSourceFactory, toDataModelSourceFactory, toDataModelSourceFactory, toDataModelSourceFilter, toOutputUri, toUri, toVerifierFactory
public FlowDriverOutput(Class<?> callerClass, TestDataToolProvider testTools, String name, Class<T> modelType)
callerClass
- the current context classtestTools
- the test data toolsname
- the original input namemodelType
- the data model typeprotected abstract S getThis()
public S prepare(DataModelSourceFactory factory)
factory
- factory which provides test data setpublic S prepare(DataModelSourceFactory factory, Consumer<? super T> transformer)
factory
- factory which provides test data settransformer
- the input source transformerpublic S verify(VerifierFactory factory)
factory
- factory which provides result verifierpublic S filter(UnaryOperator<DataModelSource> filter)
filter
- the data set filterpublic S dumpActual(DataModelSinkFactory factory)
factory
- factory which provides result data sinkpublic S dumpDifference(DifferenceSinkFactory factory)
factory
- factory which provides result differences sinkpublic S prepare(String sourcePath)
sourcePath
- path to the initial data set fileIllegalArgumentException
- if the source was not found on the pathpublic S prepare(Iterable<? extends T> objects)
objects
- the initial data objectspublic S prepare(Provider<? extends Source<? extends T>> provider)
provider
- the expected data set providerpublic S prepare(Class<? extends DataFormat<? super T>> formatClass, String sourcePath)
prepare(Class, File)
instead.formatClass
- the data format classsourcePath
- the input file path on the class pathIllegalArgumentException
- if the source is not valid for the given data formatpublic S prepare(Class<? extends DataFormat<? super T>> formatClass, File sourceFile)
formatClass
- the data format classsourceFile
- the input fileIllegalArgumentException
- if the source is not valid for the given data formatpublic S verify(DataModelSourceFactory expectedFactory, String verifyRulePath)
expectedFactory
- factory which provides the expected data setverifyRulePath
- the path to verification rule fileIllegalArgumentException
- if the verification rule file was not foundpublic S verify(String expectedPath, String verifyRulePath)
expectedPath
- the path to the expected data set fileverifyRulePath
- the path to verification rule fileIllegalArgumentException
- if either the expected data set or verification rule file was not foundpublic S verify(Iterable<? extends T> expectedObjects, String verifyRulePath)
expectedObjects
- the expected data objectsverifyRulePath
- the path to verification rule fileIllegalArgumentException
- if the verification rule file was not foundpublic S verify(Provider<? extends Source<? extends T>> expectedProvider, String verifyRulePath)
expectedProvider
- the expected data set providerverifyRulePath
- the path to verification rule fileIllegalArgumentException
- if the verification rule file was not foundpublic S verify(Class<? extends DataFormat<? super T>> formatClass, String expectedPath, String verifyRulePath)
verify(Class, File, String)
instead.formatClass
- the data format classexpectedPath
- the path to the expected data set file on the class pathverifyRulePath
- the path to verification rule fileIllegalArgumentException
- if the source is not valid for the given data formatpublic S verify(Class<? extends DataFormat<? super T>> formatClass, File expectedFile, String verifyRulePath)
formatClass
- the data format classexpectedFile
- the expected data set fileverifyRulePath
- the path to verification rule fileIllegalArgumentException
- if the source is not valid for the given data formatpublic S verify(DataModelSourceFactory expectedFactory, String verifyRulePath, ModelTester<? super T> tester)
expectedFactory
- factory which provides the expected data setverifyRulePath
- the path to verification rule filetester
- the extra verification rule for each data model object (nullable)IllegalArgumentException
- if the verification rule file was not foundpublic S verify(String expectedPath, String verifyRulePath, ModelTester<? super T> tester)
expectedPath
- the path to the expected data set fileverifyRulePath
- the path to verification rule filetester
- the extra verification rule for each data model object (nullable)IllegalArgumentException
- if either the expected data set or verification rule file was not foundpublic S verify(Iterable<? extends T> expectedObjects, String verifyRulePath, ModelTester<? super T> tester)
expectedObjects
- the expected data objectsverifyRulePath
- the path to verification rule filetester
- the extra verification rule for each data model object (nullable)IllegalArgumentException
- if the verification rule file was not foundpublic S verify(Provider<? extends Source<? extends T>> expectedProvider, String verifyRulePath, ModelTester<? super T> tester)
expectedProvider
- the expected data set providerverifyRulePath
- the path to verification rule filetester
- the extra verification rule for each data model object (nullable)IllegalArgumentException
- if the verification rule file was not foundpublic S verify(Class<? extends DataFormat<? super T>> formatClass, String expectedPath, String verifyRulePath, ModelTester<? super T> tester)
verify(Class, String, String, ModelTester)
instead.formatClass
- the data format classexpectedPath
- the path to the expected data set file on the class pathverifyRulePath
- the path to verification rule filetester
- the extra verification rule for each data model object (nullable)IllegalArgumentException
- if the source is not valid for the given data formatpublic S verify(Class<? extends DataFormat<? super T>> formatClass, File expectedFile, String verifyRulePath, ModelTester<? super T> tester)
formatClass
- the data format classexpectedFile
- the expected data set fileverifyRulePath
- the path to verification rule filetester
- the extra verification rule for each data model object (nullable)IllegalArgumentException
- if the source is not valid for the given data formatpublic S verify(DataModelSourceFactory expectedFactory, ModelVerifier<? super T> modelVerifier)
expectedFactory
- factory which provides the expected data setmodelVerifier
- the verification rulepublic S verify(String expectedPath, ModelVerifier<? super T> modelVerifier)
expectedPath
- the path to the expected data set filemodelVerifier
- the verification ruleIllegalArgumentException
- if either the expected data set or verification rule file was not foundpublic S verify(Iterable<? extends T> expectedObjects, ModelVerifier<? super T> modelVerifier)
expectedObjects
- the expected data objectsmodelVerifier
- the verification rulepublic S verify(Provider<? extends Source<? extends T>> expectedProvider, ModelVerifier<? super T> modelVerifier)
expectedProvider
- the expected data set providermodelVerifier
- the verification rulepublic S verify(Class<? extends DataFormat<? super T>> formatClass, String expectedPath, ModelVerifier<? super T> modelVerifier)
verify(Class, File, ModelVerifier)
instead.formatClass
- the data format classexpectedPath
- the path to the expected data set file on the class pathmodelVerifier
- the verification ruleIllegalArgumentException
- if the source is not valid for the given data formatpublic S verify(Class<? extends DataFormat<? super T>> formatClass, File expectedFile, ModelVerifier<? super T> modelVerifier)
formatClass
- the data format classexpectedFile
- the expected data set filemodelVerifier
- the verification ruleIllegalArgumentException
- if the source is not valid for the given data formatpublic S transform(Consumer<? super T> transformer)
transformer
- the data model object transformerpublic S transform(ModelTransformer<? super T> transformer)
transformer
- the data model object transformerpublic S dumpActual(String outputPath)
outputPath
- the output pathpublic S dumpActual(File outputPath)
outputPath
- the output pathpublic S dumpActual(Class<? extends DataFormat<? super T>> formatClass, File outputPath)
formatClass
- the data format classoutputPath
- the output pathpublic S dumpDifference(String outputPath)
outputPath
- the output pathpublic S dumpDifference(File outputPath)
outputPath
- the output pathCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.