public class FlowPartTester extends TesterBase
FlowPart flow-part classes.driverContext| Constructor and Description |
|---|
FlowPartTester(Class<?> callerClass)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
<T> FlowPartDriverInput<T> |
input(String name,
Class<T> modelType)
Starts configuring the target flow input.
|
<T> FlowPartDriverOutput<T> |
output(String name,
Class<T> modelType)
Starts configuring the target flow output.
|
void |
runTest(FlowDescription description)
Executes a flow-part and then verifies the execution result.
|
void |
runTest(Runnable description)
Executes a temporary flow and then verifies the execution result.
|
getExternalResources, loader, loader, loader, loader, loader, loader, putExternalResourceaddInputTrace, 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, toVerifierFactorypublic FlowPartTester(Class<?> callerClass)
callerClass - the caller class (usually it is a test class)public <T> FlowPartDriverInput<T> input(String name, Class<T> modelType)
In interface. Application developers should keep the object after
configuring the target input, and drive it into the flow-part's constructor.T - the data model typename - a unique input namemodelType - the data model typepublic <T> FlowPartDriverOutput<T> output(String name, Class<T> modelType)
Out interface. Application developers should keep the object after
configuring the target output, and drive it into the flow-part's constructor.T - the data model typename - a unique output namemodelType - the data model typepublic void runTest(Runnable description)
Runnable.run().description - a temporary flow builderIllegalStateException - if error was occurred while building jobflow class or initializing this testerAssertionError - if verification was failedpublic void runTest(FlowDescription description)
description - the target flow-part objectIllegalStateException - if error was occurred while building jobflow class or initializing this testerAssertionError - if verification was failedCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.