T - the data model typepublic class DriverOutputBase<T> extends DriverInputBase<T>
| Constructor and Description |
|---|
DriverOutputBase(Class<?> callerClass,
TestDataToolProvider testTools,
String name,
Class<T> modelType)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
DifferenceSinkFactory |
getDifferenceSink()
Returns the difference information sink for this output.
|
DataModelSinkFactory |
getResultSink()
Returns the result data sink for this output.
|
VerifierFactory |
getVerifier()
Returns the verifier.
|
protected void |
setDifferenceSink(DifferenceSinkFactory differenceSink)
Sets the difference information sink for this output.
|
protected void |
setResultFilter(UnaryOperator<DataModelSource> filter)
Sets the data model source filter for actual results of this output.
|
protected void |
setResultSink(DataModelSinkFactory resultSink)
Sets the result data sink for this output.
|
protected void |
setVerifier(VerifierFactory verifier)
Sets the verify rule for this output.
|
protected DataModelSinkFactory |
toDataModelSinkFactory(File path)
Converts an output path to
DataModelSinkFactory to write to the path. |
protected DataModelSinkFactory |
toDataModelSinkFactory(String path)
Converts an output path to
DataModelSinkFactory to write to the path. |
protected DifferenceSinkFactory |
toDifferenceSinkFactory(File path)
Converts an output path to
DifferenceSinkFactory to write to the path. |
protected DifferenceSinkFactory |
toDifferenceSinkFactory(String path)
Converts an output path to
DifferenceSinkFactory to write to the path. |
protected VerifierFactory |
toVerifierFactory(DataModelSourceFactory expectedFactory,
VerifyRuleFactory ruleFactory)
Converts a pair of expected data set factory and verify rule factory into
VerifyRuleFactory. |
protected VerifyRuleFactory |
toVerifyRuleFactory(ModelVerifier<? super T> modelVerifier)
Converts
ModelVerifier into VerifyRuleFactory. |
protected VerifyRuleFactory |
toVerifyRuleFactory(String rulePath,
List<? extends ModelTester<? super T>> extraRules)
Converts
ModelVerifier into VerifyRuleFactory. |
getCallerClass, getDataModelDefinition, getModelType, getName, getSource, getTestTools, setSource, toDataModelSourceFactory, toDataModelSourceFiltertoDataModelSinkFactory, toDataModelSourceFactory, toDataModelSourceFactory, toDataModelSourceFactory, toDataModelSourceFactory, toDataModelSourceFactory, toDataModelSourceFilter, toOutputUri, toUri, toVerifierFactorypublic DriverOutputBase(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 typepublic VerifierFactory getVerifier()
null if not definedprotected final void setVerifier(VerifierFactory verifier)
verifier - the verifier to set, or null to clear verifierpublic DataModelSinkFactory getResultSink()
null if not definedprotected final void setResultSink(DataModelSinkFactory resultSink)
resultSink - the result data sink to set, or null to clear the sinkpublic DifferenceSinkFactory getDifferenceSink()
null if not definedprotected final void setDifferenceSink(DifferenceSinkFactory differenceSink)
differenceSink - the difference sink to set, null to clear the sinkprotected final void setResultFilter(UnaryOperator<DataModelSource> filter)
filter - the source filterprotected final DataModelSinkFactory toDataModelSinkFactory(String path)
DataModelSinkFactory to write to the path.path - the output pathprotected final DataModelSinkFactory toDataModelSinkFactory(File path)
DataModelSinkFactory to write to the path.path - the output pathprotected final DifferenceSinkFactory toDifferenceSinkFactory(String path)
DifferenceSinkFactory to write to the path.path - the output pathprotected final DifferenceSinkFactory toDifferenceSinkFactory(File path)
DifferenceSinkFactory to write to the path.path - the output pathprotected final VerifyRuleFactory toVerifyRuleFactory(String rulePath, List<? extends ModelTester<? super T>> extraRules)
ModelVerifier into VerifyRuleFactory.rulePath - the path which represents the verification rule descriptionextraRules - the extra verification rulesVerifyRuleFactoryprotected final VerifyRuleFactory toVerifyRuleFactory(ModelVerifier<? super T> modelVerifier)
ModelVerifier into VerifyRuleFactory.modelVerifier - the original verifierVerifyRuleFactoryprotected final VerifierFactory toVerifierFactory(DataModelSourceFactory expectedFactory, VerifyRuleFactory ruleFactory)
VerifyRuleFactory.expectedFactory - the expected data set factoryruleFactory - the verification rule factoryVerifierFactory which provides a verifier using the expected data set and verification ruleCopyright © 2011–2018 Asakusa Framework Team. All rights reserved.