public interface TestDataToolProvider
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. |
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.
|
VerifierFactory |
toVerifierFactory(DataModelSourceFactory expectedFactory,
VerifyRuleFactory ruleFactory)
Returns a
VerifierFactory for expected data set and a verification rule. |
<T> VerifyRuleFactory |
toVerifyRuleFactory(DataModelDefinition<T> dataModelClass,
ModelVerifier<? super T> verifier)
Converts model verifier into a corresponding rule.
|
<T> TestRule |
toVerifyRuleFragment(DataModelDefinition<T> dataModelClass,
ModelTester<? super T> tester)
Converts model tester into a corresponding rule.
|
<T> DataModelDefinition<T> toDataModelDefinition(Class<T> dataModelClass) throws IOException
T
- data model typedataModelClass
- target classIOException
- if failed to convert classIllegalArgumentException
- if some parameters were null
DataModelSourceFactory getDataModelSourceFactory(URI uri)
DataModelSourceFactory
for the URI.uri
- target URIIllegalArgumentException
- if some parameters were null
DataModelSinkFactory getDataModelSinkFactory(URI uri)
DataModelSinkFactory
for the URI.uri
- target URIIllegalArgumentException
- if some parameters were null
DifferenceSinkFactory getDifferenceSinkFactory(URI uri)
DifferenceSinkFactory
for the URI.uri
- target URIIllegalArgumentException
- if some parameters were null
VerifyRuleFactory getVerifyRuleFactory(URI ruleUri, List<? extends TestRule> extraRules)
VerifyRuleFactory
for the URI.ruleUri
- the URI which describes verification ruleextraRules
- extra rulesIllegalArgumentException
- if some parameters were null
<T> VerifyRuleFactory toVerifyRuleFactory(DataModelDefinition<T> dataModelClass, ModelVerifier<? super T> verifier)
T
- verification target typedataModelClass
- target classverifier
- target verifier objectIllegalArgumentException
- if some parameters were null
<T> TestRule toVerifyRuleFragment(DataModelDefinition<T> dataModelClass, ModelTester<? super T> tester)
T
- test target typedataModelClass
- target classtester
- target tester objectIllegalArgumentException
- if some parameters were null
VerifierFactory toVerifierFactory(DataModelSourceFactory expectedFactory, VerifyRuleFactory ruleFactory)
VerifierFactory
for expected data set and a verification rule.expectedFactory
- the data model source factory which provides expected data setruleFactory
- verification rule factoryIllegalArgumentException
- if some parameters were null
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.