Skip to content

Commit 29ec51d

Browse files
committed
Added return type
1 parent 643b990 commit 29ec51d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fflib-sample-code/src/classes/Mocks.cls

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class Mocks
1515

1616
public List<Opportunity> selectByIdWithProducts(Set<ID> idSet)
1717
{
18-
return (List<Opportunity>) mocks.mockNonVoidMethod(this, 'selectByIdWithProducts', new List<Type>(), new List<Object> {idSet});
18+
return (List<Opportunity>) mocks.mockNonVoidMethod(this, 'selectByIdWithProducts', new List<Type> {Opportunity.class}, new List<Object> {idSet});
1919
}
2020
}
2121

@@ -51,12 +51,12 @@ public class Mocks
5151

5252
public Set<Id> createInvoices(Set<ID> opportunityIds, Decimal discountPercentage)
5353
{
54-
return (Set<Id>) mocks.mockNonVoidMethod(this, 'createInvoices', new List<Type>(), new List<Object> {opportunityIds, discountPercentage});
54+
return (Set<Id>) mocks.mockNonVoidMethod(this, 'createInvoices', new List<Type> {ID.class}, new List<Object> {opportunityIds, discountPercentage});
5555
}
5656

5757
public Id submitInvoicingJob()
5858
{
59-
return (Id) mocks.mockNonVoidMethod(this, 'submitInvoicingJob', new List<Type>(), new List<Object>());
59+
return (Id) mocks.mockNonVoidMethod(this, 'submitInvoicingJob', new List<Type> {ID.class}, new List<Object>());
6060
}
6161
}
6262
}

0 commit comments

Comments
 (0)