public abstract class TestDriverBase extends DriverElementBase
| Modifier and Type | Field and Description |
|---|---|
protected TestDriverContext |
driverContext
The internal test driver context object.
|
| Constructor and Description |
|---|
TestDriverBase(Class<?> callerClass)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addInputTrace(Class<?> operatorClass,
String methodName,
String portName)
Adds a new trace-point to the target operator input.
|
void |
addInputTrace(Class<? extends FlowDescription> flowpartClass,
String portName)
Deprecated.
some platform does not support tracing flow-part I/O;
please use
addInputTrace(Class, String, String) instead |
void |
addOutputTrace(Class<?> operatorClass,
String methodName,
String portName)
Adds a new trace-point to the target operator output.
|
void |
addOutputTrace(Class<? extends FlowDescription> flowpartClass,
String portName)
Deprecated.
some platform does not support tracing flow-part I/O;
please use
addOutputTrace(Class, String, String) instead |
void |
configure(String key,
String value)
Adds a runtime configuration item.
|
protected Class<?> |
getCallerClass()
Returns the caller class.
|
protected TestDataToolProvider |
getTestTools()
Returns the test tools.
|
void |
setBatchArg(String key,
String value)
Adds a batch argument.
|
void |
setCompilerWorkingDirectory(File path)
Sets the explicit compiler working directory.
|
void |
setDebug(boolean enable)
Sets whether compiler should keep debugging information or not.
|
void |
setExtraCompilerOption(String name,
String value)
Sets an extra compiler option.
|
void |
setFrameworkHomePath(File frameworkHomePath)
Sets the Asakusa framework installation path (a.k.a.
$ASAKUSA_HOME). |
void |
setJobExecutorFactory(JobExecutorFactory factory)
Deprecated.
not supported
|
void |
setLibrariesPath(File librariesPath)
Sets the search path of the external library files.
|
void |
setOptimize(int level)
Configures the compiler optimization level.
|
void |
skipCleanInput(boolean skip)
Sets whether skips truncating test input data.
|
void |
skipCleanOutput(boolean skip)
Sets whether skips truncating test output data.
|
void |
skipPrepareInput(boolean skip)
Sets whether skips preparing test input data.
|
void |
skipPrepareOutput(boolean skip)
Sets whether skips preparing test output data.
|
void |
skipRunJobflow(boolean skip)
Sets whether skips executing jobflows.
|
void |
skipValidateCondition(boolean skip)
Sets whether skips verifying test conditions.
|
void |
skipVerify(boolean skip)
Sets whether skips verifying test results.
|
toDataModelSinkFactory, toDataModelSourceFactory, toDataModelSourceFactory, toDataModelSourceFactory, toDataModelSourceFactory, toDataModelSourceFactory, toDataModelSourceFilter, toOutputUri, toUri, toVerifierFactoryprotected final TestDriverContext driverContext
public TestDriverBase(Class<?> callerClass)
callerClass - the caller classIllegalArgumentException - if some parameters were nullprotected final Class<?> getCallerClass()
DriverElementBasegetCallerClass in class DriverElementBaseprotected final TestDataToolProvider getTestTools()
DriverElementBasegetTestTools in class DriverElementBasepublic void configure(String key, String value)
report API).key - the configuration key namevalue - the configuration value, or null to unset the target configurationIllegalArgumentException - if key is nullpublic void setBatchArg(String key, String value)
key - the argument namevalue - the argument value, or null to unset the target argumentIllegalArgumentException - if key is nullpublic void setOptimize(int level)
level - the compiler optimization levelpublic void setDebug(boolean enable)
enable - true to keep debugging information, otherwise falsepublic void setExtraCompilerOption(String name, String value)
name - the option namevalue - the option valuepublic void setFrameworkHomePath(File frameworkHomePath)
$ASAKUSA_HOME).
If this is not set, the installation path will be computed from the environment variable.frameworkHomePath - the framework installation pathpublic void setLibrariesPath(File librariesPath)
TestDriverContext.EXTERNAL_LIBRARIES_PATH.librariesPath - the search path of the external library filespublic void setCompilerWorkingDirectory(File path)
path - the explicit compiler working directorypublic void skipValidateCondition(boolean skip)
skip - true if verifying test conditions, otherwise falsepublic void skipCleanInput(boolean skip)
skip - true if truncating test input data, otherwise falsepublic void skipCleanOutput(boolean skip)
skip - true if truncating test output data, otherwise falsepublic void skipPrepareInput(boolean skip)
skip - true if preparing test input data, otherwise falsepublic void skipPrepareOutput(boolean skip)
skip - true if preparing test output data, otherwise falsepublic void skipRunJobflow(boolean skip)
skip - true if executing jobflows, otherwise falsepublic void skipVerify(boolean skip)
skip - true if verifying test results, otherwise falsepublic void addInputTrace(Class<?> operatorClass, String methodName, String portName)
operatorClass - target operator classmethodName - target operator method nameportName - target operator input port nameIllegalArgumentException - if some parameters were nullpublic void addOutputTrace(Class<?> operatorClass, String methodName, String portName)
operatorClass - target operator classmethodName - target operator method nameportName - target operator input port nameIllegalArgumentException - if some parameters were null@Deprecated public void addInputTrace(Class<? extends FlowDescription> flowpartClass, String portName)
addInputTrace(Class, String, String) insteadflowpartClass - target flow-part classportName - target operator input port nameIllegalArgumentException - if some parameters were null@Deprecated public void addOutputTrace(Class<? extends FlowDescription> flowpartClass, String portName)
addOutputTrace(Class, String, String) insteadflowpartClass - target flow-part classportName - target operator input port nameIllegalArgumentException - if some parameters were null@Deprecated public void setJobExecutorFactory(JobExecutorFactory factory)
JobExecutorFactory for executing jobs in this test.factory - the factory, or null to use a default implementationCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.