Skip to content

Commit 2e53b87

Browse files
author
Clay Chipps
committed
updated uowMock declaration
1 parent ead915d commit 2e53b87

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sfdx-source/apex-common-samplecode/test/classes/domains/OpportunitiesTest.cls

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ private class OpportunitiesTest
3535
{
3636
// Create mocks
3737
fflib_ApexMocks mocks = new fflib_ApexMocks();
38-
fflib_ISObjectUnitOfWork uowMock = new fflib_SObjectMocks.SObjectUnitOfWork(mocks);
39-
38+
fflib_SObjectUnitOfWork uowMock = (fflib_SObjectUnitOfWork) mocks.mock(fflib_SObjectUnitOfWork.class);
4039
// Given
4140
Opportunity opp = new Opportunity(
4241
Id = fflib_IDGenerator.generate(Opportunity.SObjectType),

0 commit comments

Comments
 (0)