Skip to content

Commit cf1ce0f

Browse files
committed
refactoring
1 parent f5cf449 commit cf1ce0f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

force-app/main/default/classes/main/cached-soql/SOQLCache.cls

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public virtual inherited sharing class SOQLCache implements Cacheable {
6868

6969
public interface Mockable {
7070
// SObject
71-
Mockable thenReturn(SObject record);
71+
void thenReturn(SObject record);
7272
}
7373

7474
@TestVisible
@@ -523,11 +523,9 @@ public virtual inherited sharing class SOQLCache implements Cacheable {
523523

524524
public class SoqlMock implements Mockable {
525525
private List<SObject> mockedRecords = new List<SObject>();
526-
private Integer countMock;
527526

528-
public Mockable thenReturn(SObject record) {
527+
public void thenReturn(SObject record) {
529528
this.mockedRecords.add(record);
530-
return this;
531529
}
532530

533531
public List<SObject> getMockedResult() {

0 commit comments

Comments
 (0)