Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

Excerpt

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

Code Block
languagejava
B25.Test_FormHelper.TestChangeEvent changeEvent = new B25.Test_FormHelper.TestChangeEvent();
formContextchangeEvent.sObjectField = B25__Reservation__c.B25__Quantity__c;
formContextchangeEvent.newValue = 1;
formContextchangeEvent.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

On this page

Table of Contents