/
B25.Test_FormHelper.TestChangeEvent
B25.Test_FormHelper.TestChangeEvent
Overview
Object that is used to specify the field change event inside of unit tests.
To test your custom form API implementation you need to be able to specify the event that is being fired this class represents the field change event data.
Example
B25.Test_FormHelper.TestChangeEvent changeEvent = new B25.Test_FormHelper.TestChangeEvent();
changeEvent.sObjectField = B25__Reservation__c.B25__Quantity__c;
changeEvent.newValue = 1;
changeEvent.previousValue = 0;
Properties
Name | Type | Description |
---|---|---|
parentSObject | SObjectType | The sObject type of the sObject the field that is changing is on. Only required when testing related sObject field changes. |
sObjectField | SObjectField | The field that is changing |
newValue | Object | The new value of the field. |
previousValue | Object | The old value of the field |
changedRelatedListItem | Object | The related list item that this field change happened on. Use only when testing field change handlers on related lists. |
, multiple selections available,
Related content
B25.Test_FormHelper.TestFormContext
B25.Test_FormHelper.TestFormContext
More like this
B25.Test_FormHelper.TestRelatedListEvent
B25.Test_FormHelper.TestRelatedListEvent
More like this
B25.Test_FormHelper.TestSearchContext
B25.Test_FormHelper.TestSearchContext
More like this
Unit Testing the Custom Form Logic
Unit Testing the Custom Form Logic
More like this
B25.FormField
B25.FormField
More like this