testExtendsFieldValidation() This will create an instance of the Item domain class and update its Status2 field, which internally will invoke the RulesEngine for validating the field.
public void
testForeignKeyFieldValidator() This will create an instance of the Item domain class and update its Condition field, which internally will invoke the RulesEngine for validating the field.
public void
testGenericForeignKeyFieldValidator() This will create an instance of the Item domain class and update its Status1 field, which internally will invoke the RulesEngine for validating the field.
public void
testInListFieldValidator() This will create an instance of the Item domain class and update its Status3 field, which internally will invoke the RulesEngine for validating the field.
testMandatoryFieldValidator() This will directly invoke the doAllValidationsForDomainField() method of the RulesEngine, for validating the rules for the ItemId field of the class Item.
This will create an instance of the Item domain class and update its Status2 field, which internally will invoke the RulesEngine for validating the field.
The Status2 field has been defined to extend the Status1 rules, which in turn has been defined to be a valid generic-foreign-key value in the core-rules.xml file.
This will create an instance of the Item domain class and update its Condition field, which internally will invoke the RulesEngine for validating the field.
The Condition field has been defined to be a valid foreign-key in the core-rules.xml file.
testGenericForeignKeyFieldValidator
public void testGenericForeignKeyFieldValidator()(Code)
This will create an instance of the Item domain class and update its Status1 field, which internally will invoke the RulesEngine for validating the field.
The Status1 field has been defined to be a valid generic-foreign-key in the core-rules.xml file.
This will create an instance of the Item domain class and update its Status3 field, which internally will invoke the RulesEngine for validating the field.
The Status3 field has been assigned a list of valid values in the core-rules.xml file.
This will directly invoke the doAllValidationsForDomainField() method of the RulesEngine, for validating the rules for the ItemId field of the class Item.
The ItemId field has been defined to be mandatory in the core-rules.xml file.