public class TestToolRepository extends AbstractTestDataToolProvider
Constructor and Description |
---|
TestToolRepository(ClassLoader classLoader)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
DataModelSinkFactory |
getDataModelSinkFactory(URI uri)
Returns a
DataModelSinkFactory for the URI. |
DataModelSourceFactory |
getDataModelSourceFactory(URI uri)
Returns a
DataModelSourceFactory for the URI. |
DifferenceSinkFactory |
getDifferenceSinkFactory(URI uri)
Returns a
DifferenceSinkFactory for the URI. |
<T extends ExporterDescription> |
getExporterRetriever(T description)
Returns an
ExporterRetriever for the description. |
<T extends ImporterDescription> |
getImporterPreparator(T description)
Returns an
ImporterPreparator for the description. |
VerifyRuleFactory |
getVerifyRuleFactory(URI ruleUri,
List<? extends TestRule> extraRules)
Returns a
VerifyRuleFactory for the URI. |
<T> DataModelDefinition<T> |
toDataModelDefinition(Class<T> dataModelClass)
Converts data model class into its definition.
|
toVerifierFactory, toVerifyRuleFactory, toVerifyRuleFragment
public TestToolRepository(ClassLoader classLoader)
classLoader
- the service class loaderIllegalArgumentException
- if some parameters were null
public <T> DataModelDefinition<T> toDataModelDefinition(Class<T> dataModelClass) throws IOException
TestDataToolProvider
T
- data model typedataModelClass
- target classIOException
- if failed to convert classpublic <T extends ImporterDescription> ImporterPreparator<? super T> getImporterPreparator(T description)
ImporterPreparator
for the description.T
- description typedescription
- target descriptionIllegalArgumentException
- if some parameters were null
public <T extends ExporterDescription> ExporterRetriever<? super T> getExporterRetriever(T description)
ExporterRetriever
for the description.T
- description typedescription
- target descriptionIllegalArgumentException
- if some parameters were null
public DataModelSourceFactory getDataModelSourceFactory(URI uri)
TestDataToolProvider
DataModelSourceFactory
for the URI.uri
- target URIpublic DataModelSinkFactory getDataModelSinkFactory(URI uri)
TestDataToolProvider
DataModelSinkFactory
for the URI.uri
- target URIpublic DifferenceSinkFactory getDifferenceSinkFactory(URI uri)
TestDataToolProvider
DifferenceSinkFactory
for the URI.uri
- target URIpublic VerifyRuleFactory getVerifyRuleFactory(URI ruleUri, List<? extends TestRule> extraRules)
TestDataToolProvider
VerifyRuleFactory
for the URI.ruleUri
- the URI which describes verification ruleextraRules
- extra rulesCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.