public class CompositeVerifyRule extends Object implements VerifyRule
NULL| Constructor and Description |
|---|
CompositeVerifyRule(VerifyRule rule,
List<? extends TestRule> fragments)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getKey(DataModelReflection target)
Returns the key of the target data model.
|
Object |
verify(DataModelReflection expected,
DataModelReflection actual)
Verifies each model object.
|
public CompositeVerifyRule(VerifyRule rule, List<? extends TestRule> fragments)
rule - the primary verify rulefragments - the extra verify rulesIllegalArgumentException - if some parameters were nullpublic Object getKey(DataModelReflection target)
VerifyRule
This method must return objects which have
both Object.equals(Object) and Object.hashCode().
getKey in interface VerifyRuletarget - the targetpublic 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.