-
Notifications
You must be signed in to change notification settings - Fork 0
The MockDuplicates.FieldDiff Class
GitHub Action edited this page Nov 11, 2025
·
1 revision
Represents a field-level difference between records in test scenarios.
This class extends Duplicates.FieldDiff and provides a fluent API for specifying how fields differ in duplicate matches.
Sets the type of difference for this field. The difference parameter specifies the difference type: IS_DIFFERENT, IS_NULL, or IS_SAME. Returns this instance for method chaining.
MockDuplicates.FieldDiff setDifference(MockDuplicates.DiffType difference)
diff.setDifference(MockDuplicates.DiffType.IS_DIFFERENT);Sets the API name of the field. Returns this instance for method chaining.
MockDuplicates.FieldDiff setName(String name)
diff.setName('Phone');Navigates back to the top-level FindDuplicatesResult.
MockDuplicates.FindDuplicatesResult toTop()
MockDuplicates.FindDuplicatesResult result = diff.toTop();Navigates back to the parent MatchRecord.
MockDuplicates.MatchRecord up()
MockDuplicates.MatchRecord matchRecord = diff.up();- Generating Test Records
- Dml
- Soql
- Cmdt
- Duplicates
- Plugins
- DatabaseLayer
- Dml
- MockDml
- MockRecord
- Cmdt
- MockCmdt
- Duplicates
- MockDuplicates
- MockSoql
-
Soql
- Soql.AggregateResult
- Soql.Aggregation
- Soql.Binder
- Soql.Builder
- Soql.Condition
- Soql.ConditionalLogic
- Soql.Criteria
- Soql.Cursor
- Soql.Function
- Soql.InnerQuery
- Soql.InvalidParameterValueException
- Soql.LogicType
- Soql.NullOrder
- Soql.Operation
- Soql.Operator
- Soql.ParentField
- Soql.PreAndPostProcessor
- Soql.QueryLocator
- Soql.Request
- Soql.Scope
- Soql.Selectable
- Soql.SortDirection
- Soql.SortOrder
- Soql.Subquery
- Soql.TypeOf
- Soql.Usage
- Soql.WhenClause