Skip to content

Commit 0e3efeb

Browse files
committed
Updates one accidental advance by issue in the RepoFactory.CursorMock
1 parent bdf09fa commit 0e3efeb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

force-app/factory/RepoFactory.cls

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ public virtual class RepoFactory {
1212
protected set;
1313
}
1414

15+
@SuppressWarnings('PMD.AvoidBooleanMethodParameters')
1516
public RepoFactory setShouldPrintBindVars(Boolean shouldPrintBindVars) {
1617
this.shouldPrintBindVars = shouldPrintBindVars;
1718
return this;

force-app/factory/RepoFactoryMock.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ public class RepoFactoryMock extends RepoFactory {
215215
public override List<SObject> fetch(Integer start, Integer advanceBy) {
216216
List<SObject> clonedRecords = records.deepClone();
217217
clonedRecords.clear();
218-
for (Integer index = start; index < this.getAdvanceBy(start, advanceBy); index++) {
218+
for (Integer index = start; index < this.getAdvanceBy(start, advanceBy) + start; index++) {
219219
clonedRecords.add(this.records[index]);
220220
}
221221
return clonedRecords;

0 commit comments

Comments
 (0)