public class BatchTestTool extends DriverElementBase implements TestContext
BatchTestRunner
TestContext.Empty
Modifier | Constructor and Description |
---|---|
|
BatchTestTool(Class<?> callerClass)
Creates a new instance.
|
|
BatchTestTool(Class<?> callerClass,
TestContext context)
Creates a new instance.
|
protected |
BatchTestTool(Class<?> callerClass,
TestContext context,
TestToolRepository tools)
Creates a new instance.
|
|
BatchTestTool(TestDriverContext context)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
collect(ExporterDescription description,
DataModelSinkFactory sink)
Collects jobflow output.
|
void |
collect(ExporterDescription description,
String outputPath)
Collects jobflow output.
|
Map<String,String> |
getArguments()
Returns the user arguments.
|
protected Class<?> |
getCallerClass()
Returns the caller class.
|
ClassLoader |
getClassLoader()
Returns the class loader to load testing peripherals.
|
Map<String,String> |
getEnvironmentVariables()
Returns the environment variables.
|
protected TestToolRepository |
getTestTools()
Returns the test tools.
|
void |
prepare(ImporterDescription description,
DataModelSourceFactory source)
Prepares jobflow input.
|
void |
prepare(ImporterDescription description,
String dataPath)
Prepares jobflow input.
|
void |
truncate(ExporterDescription description)
Truncates jobflow output.
|
void |
truncate(ImporterDescription description)
Truncates jobflow input.
|
List<Difference> |
verify(ExporterDescription description,
String expectedPath,
String verifyRulePath,
ModelTester<?>... extraRules)
Verifies jobflow output.
|
List<Difference> |
verify(ExporterDescription description,
String expectedPath,
String verifyRulePath,
ModelTransformer<?> transformer,
ModelTester<?>... extraRules)
Verifies jobflow output.
|
List<Difference> |
verify(ExporterDescription description,
VerifierFactory verifier)
Verifies jobflow output.
|
toDataModelSinkFactory, toDataModelSourceFactory, toDataModelSourceFactory, toDataModelSourceFactory, toDataModelSourceFactory, toDataModelSourceFactory, toDataModelSourceFilter, toOutputUri, toUri, toVerifierFactory
public BatchTestTool(Class<?> callerClass)
callerClass
- the caller class (for detecting testing resources)public BatchTestTool(Class<?> callerClass, TestContext context)
callerClass
- the caller class (for detecting testing resources)context
- the current testing contextpublic BatchTestTool(TestDriverContext context)
context
- the current contextprotected BatchTestTool(Class<?> callerClass, TestContext context, TestToolRepository tools)
callerClass
- the caller class (for detecting testing resources)context
- the current testing contexttools
- the testing toolspublic ClassLoader getClassLoader()
TestContext
getClassLoader
in interface TestContext
public Map<String,String> getArguments()
TestContext
getArguments
in interface TestContext
public Map<String,String> getEnvironmentVariables()
TestContext
getEnvironmentVariables
in interface TestContext
protected final Class<?> getCallerClass()
DriverElementBase
getCallerClass
in class DriverElementBase
protected final TestToolRepository getTestTools()
DriverElementBase
getTestTools
in class DriverElementBase
public void truncate(ImporterDescription description) throws IOException
description
- the target importer descriptionIOException
- if failed to truncate the inputpublic void truncate(ExporterDescription description) throws IOException
description
- the target exporter descriptionIOException
- if failed to truncate the outputpublic void prepare(ImporterDescription description, String dataPath) throws IOException
description
- the target importer descriptiondataPath
- the data URIIOException
- if failed to prepare the outputpublic void prepare(ImporterDescription description, DataModelSourceFactory source) throws IOException
description
- the importer descriptionsource
- the data model sourceIOException
- if failed to prepare the inputpublic void collect(ExporterDescription description, String outputPath) throws IOException
description
- the target exporter descriptionoutputPath
- the output URIIOException
- if failed to collect the outputpublic void collect(ExporterDescription description, DataModelSinkFactory sink) throws IOException
description
- the exporter descriptionsink
- the output sinkIOException
- if failed to collect the outputpublic List<Difference> verify(ExporterDescription description, String expectedPath, String verifyRulePath, ModelTester<?>... extraRules) throws IOException
description
- the target exporter descriptionexpectedPath
- the expected data URIverifyRulePath
- the verification rule URIextraRules
- extra verification rulesIOException
- if failed to verify the outputpublic List<Difference> verify(ExporterDescription description, String expectedPath, String verifyRulePath, ModelTransformer<?> transformer, ModelTester<?>... extraRules) throws IOException
description
- the target exporter descriptionexpectedPath
- the expected data URIverifyRulePath
- the verification rule URItransformer
- the data model transformerextraRules
- extra verification rulesIOException
- if failed to verify the outputpublic List<Difference> verify(ExporterDescription description, VerifierFactory verifier) throws IOException
description
- the exporter descriptionverifier
- the verifierIOException
- if failed to verify the outputCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.