T
- the input data model typeS
- the implementation class typepublic abstract class FlowDriverInput<T,S extends FlowDriverInput<T,S>> extends DriverInputBase<T>
Constructor and Description |
---|
FlowDriverInput(Class<?> callerClass,
TestDataToolProvider testTools,
String name,
Class<T> modelType)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
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,
File sourceFile,
Consumer<? super T> transformer)
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(Class<? extends DataFormat<? super T>> formatClass,
String sourcePath,
Consumer<? super T> transformer)
Sets the test data set for this input.
|
S |
prepare(DataModelSourceFactory factory)
Sets the test data set for this input.
|
S |
prepare(DataModelSourceFactory factory,
Consumer<? super T> transformer)
Sets the test data set for this input.
|
S |
prepare(Iterable<? extends T> objects)
Sets the test data set for this input.
|
S |
prepare(Provider<? extends Source<? extends T>> provider)
Sets the test data set for this input.
|
S |
prepare(String sourcePath)
Sets the test data set for this input.
|
S |
prepare(String sourcePath,
Consumer<? super T> transformer)
Sets the test data set for this input.
|
S |
with(Consumer<? super S> configurator)
Configures this object.
|
getCallerClass, getDataModelDefinition, getModelType, getName, getSource, getTestTools, setSource, toDataModelSourceFactory, toDataModelSourceFilter
toDataModelSinkFactory, toDataModelSourceFactory, toDataModelSourceFactory, toDataModelSourceFactory, toDataModelSourceFactory, toDataModelSourceFactory, toDataModelSourceFilter, toOutputUri, toUri, toVerifierFactory
public FlowDriverInput(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(String sourcePath)
sourcePath
- the path to test data setIllegalArgumentException
- if the source was not found on the pathpublic S prepare(String sourcePath, Consumer<? super T> transformer)
sourcePath
- the path to test data settransformer
- the input source transformerIllegalArgumentException
- if the source was not found on the pathpublic 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 prepare(Iterable<? extends T> objects)
objects
- the test data objectspublic S prepare(Provider<? extends Source<? extends T>> provider)
provider
- the test 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, String sourcePath, Consumer<? super T> transformer)
prepare(Class, File)
instead.formatClass
- the data format classsourcePath
- the input file path on the class pathtransformer
- the input source transformerIllegalArgumentException
- 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 prepare(Class<? extends DataFormat<? super T>> formatClass, File sourceFile, Consumer<? super T> transformer)
formatClass
- the data format classsourceFile
- the input filetransformer
- the input source transformerIllegalArgumentException
- if the source is not valid for the given data formatCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.