public class TesterBase extends TestDriverBase
driverContext| Modifier | Constructor and Description |
|---|---|
protected |
TesterBase(Class<?> callerClass)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected Map<ImporterDescription,DataModelSourceFactory> |
getExternalResources()
Returns initial data providers for the external resources.
|
<T> DataLoader<T> |
loader(Class<T> dataType,
Class<? extends DataFormat<? super T>> formatClass,
File file)
Returns a new data loader.
|
<T> DataLoader<T> |
loader(Class<T> dataType,
Class<? extends DataFormat<? super T>> formatClass,
String sourcePath)
Returns a new data loader.
|
<T> DataLoader<T> |
loader(Class<T> dataType,
DataModelSourceFactory factory)
Returns a new data loader.
|
<T> DataLoader<T> |
loader(Class<T> dataType,
Iterable<? extends T> objects)
Returns a new data loader.
|
<T> DataLoader<T> |
loader(Class<T> dataType,
Provider<? extends Source<? extends T>> provider)
Returns a new data loader.
|
<T> DataLoader<T> |
loader(Class<T> dataType,
String sourcePath)
Returns a new data loader.
|
void |
putExternalResource(ImporterDescription importer,
DataModelSourceFactory source)
Puts initial data for the external resource.
|
addInputTrace, addInputTrace, addOutputTrace, addOutputTrace, configure, getCallerClass, getTestTools, setBatchArg, setCompilerWorkingDirectory, setDebug, setExtraCompilerOption, setFrameworkHomePath, setJobExecutorFactory, setLibrariesPath, setOptimize, skipCleanInput, skipCleanOutput, skipPrepareInput, skipPrepareOutput, skipRunJobflow, skipValidateCondition, skipVerifytoDataModelSinkFactory, toDataModelSourceFactory, toDataModelSourceFactory, toDataModelSourceFactory, toDataModelSourceFactory, toDataModelSourceFactory, toDataModelSourceFilter, toOutputUri, toUri, toVerifierFactoryprotected TesterBase(Class<?> callerClass)
callerClass - the original test classpublic final void putExternalResource(ImporterDescription importer, DataModelSourceFactory source)
other collaborators.importer - the importer description for accessing the target resourcesource - the source, or null to reset itprotected Map<ImporterDescription,DataModelSourceFactory> getExternalResources()
public <T> DataLoader<T> loader(Class<T> dataType, String sourcePath)
T - the data typedataType - the data typesourcePath - the path to test data set (relative from the current test case class)public <T> DataLoader<T> loader(Class<T> dataType, Iterable<? extends T> objects)
T - the data typedataType - the data typeobjects - the test data objectspublic <T> DataLoader<T> loader(Class<T> dataType, Provider<? extends Source<? extends T>> provider)
T - the data typedataType - the data typeprovider - the test data set providerpublic <T> DataLoader<T> loader(Class<T> dataType, Class<? extends DataFormat<? super T>> formatClass, String sourcePath)
loader(Class, Class, File) instead.T - the data typedataType - the data typeformatClass - the data format classsourcePath - the input file path on the class pathpublic <T> DataLoader<T> loader(Class<T> dataType, Class<? extends DataFormat<? super T>> formatClass, File file)
T - the data typedataType - the data typeformatClass - the data format classfile - the input file path on the class pathpublic <T> DataLoader<T> loader(Class<T> dataType, DataModelSourceFactory factory)
T - the data typedataType - the data typefactory - factory which provides test data setCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.