public class BatchTester extends TesterBase
Batch batch classes.driverContext| Constructor and Description | 
|---|
BatchTester(Class<?> callerClass)
Creates a new instance. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
JobFlowTester | 
jobflow(String flowId)
Returns a jobflow tester for the target jobflow in the testing batch. 
 | 
void | 
runTest(Class<? extends BatchDescription> description)
Executes a batch 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 BatchTester(Class<?> callerClass)
callerClass - the caller class (usually it is a test class)public JobFlowTester jobflow(String flowId)
flowId - the target flow IDpublic void runTest(Class<? extends BatchDescription> description)
description - the target batch classIllegalStateException - if error was occurred while building batch class or initializing this testerAssertionError - if verification was failedCopyright © 2011–2018 Asakusa Framework Team. All rights reserved.