T - type of modelpublic class TesterDriver<T> extends Object implements TestRule
ModelTester to TestRule.| Constructor and Description |
|---|
TesterDriver(ModelTester<? super T> verifier,
DataModelDefinition<? extends T> definition)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
verify(DataModelReflection expected,
DataModelReflection actual)
Verifies each model object.
|
public TesterDriver(ModelTester<? super T> verifier, DataModelDefinition<? extends T> definition)
verifier - ModelVerifier to adaptdefinition - target model definitionIllegalArgumentException - if some parameters were nullpublic Object verify(DataModelReflection expected, DataModelReflection actual)
TestRuleverify in interface TestRuleexpected - the expected model object,
or null if there are no corresponded to the actual model objectactual - the actual model object in test results,
or null if there are no corresponded to the expected model objectnull if successfully verifiedCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.