public class VerifyRuleInterpretor extends Object implements VerifyRule
VerifyRule implementation.NULL| Constructor and Description |
|---|
VerifyRuleInterpretor(List<PropertyName> keys,
Set<DataModelCondition> modelConditions,
List<? extends PropertyCondition<?>> propertyConditions)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
Map<PropertyName,Object> |
getKey(DataModelReflection target)
Returns the key of the target data model.
|
Object |
verify(DataModelReflection expected,
DataModelReflection actual)
Verifies each model object.
|
public VerifyRuleInterpretor(List<PropertyName> keys, Set<DataModelCondition> modelConditions, List<? extends PropertyCondition<?>> propertyConditions)
keys - property names of verify identitiesmodelConditions - existensial conditions for expected/actual model objectspropertyConditions - individual property conditionsIllegalArgumentException - if some parameters were nullpublic Map<PropertyName,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–2018 Asakusa Framework Team. All rights reserved.