Skip to content

Commit ea8d105

Browse files
kaboomkazoomPrashant Jain
andauthored
Setting classes and their methods to private (#211)
Co-authored-by: Prashant Jain <[email protected]>
1 parent 62dbeb2 commit ea8d105

File tree

1 file changed

+8
-8
lines changed
  • force-app/main/default/classes/main/standard-soql

1 file changed

+8
-8
lines changed

force-app/main/default/classes/main/standard-soql/SOQL.cls

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2379,19 +2379,19 @@ public virtual inherited sharing class SOQL implements Queryable {
23792379
}
23802380
}
23812381

2382-
public class SObjectMock {
2382+
private class SObjectMock {
23832383
private List<SObject> mockedRecords = new List<SObject>();
2384-
public Boolean useLegacyMockingBehavior = false;
2384+
private Boolean useLegacyMockingBehavior = false;
23852385

2386-
public void add(SObject record) {
2386+
private void add(SObject record) {
23872387
this.mockedRecords.add(record);
23882388
}
23892389

2390-
public void add(List<SObject> records) {
2390+
private void add(List<SObject> records) {
23912391
this.mockedRecords.addAll(records);
23922392
}
23932393

2394-
public List<SObject> get(SoqlFields fields, SoqlSubQueries subQueries) {
2394+
private List<SObject> get(SoqlFields fields, SoqlSubQueries subQueries) {
23952395
// AggregateResult can be mocked only with Id field for toIdsOf, toValueOf
23962396
if (this.useLegacyMockingBehavior || this.mockedRecords.isEmpty() || this.mockedRecords[0]?.getSObjectType() == AggregateResult.SObjectType) {
23972397
return this.mockedRecords;
@@ -2454,14 +2454,14 @@ public virtual inherited sharing class SOQL implements Queryable {
24542454
}
24552455
}
24562456

2457-
public class CountMock {
2457+
private class CountMock {
24582458
private Integer countMock;
24592459

2460-
public void set(Integer count) {
2460+
private void set(Integer count) {
24612461
this.countMock = count;
24622462
}
24632463

2464-
public Integer get() {
2464+
private Integer get() {
24652465
return this.countMock;
24662466
}
24672467
}

0 commit comments

Comments
 (0)