Skip to content

Commit

Permalink
Update TestSObjectDomain classes to use System.Assert
Browse files Browse the repository at this point in the history
  • Loading branch information
chazwatkins committed Dec 4, 2022
1 parent ab72265 commit 76e9e1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sfdx-source/apex-common/main/classes/fflib_SObjectDomain.cls
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,7 @@ public virtual with sharing class fflib_SObjectDomain
public override void onAfterInsert()
{
// This is a stateless domain class, so should not retain anything betweet before and after
System.assertEquals(null, someState);
System.Assert.areEqual(null, someState);
}
}

Expand Down Expand Up @@ -966,7 +966,7 @@ public virtual with sharing class fflib_SObjectDomain
public override void onBeforeInsert()
{
// This must always be null, as we do not reuse domain instances within recursive scenarios (different record sets)
System.assertEquals(null, someState);
System.Assert.areEqual(null, someState);

// Process records
List<Opportunity> newOpps = new List<Opportunity>();
Expand Down

0 comments on commit 76e9e1a

Please sign in to comment.