Skip to content

Commit 05ea1fe

Browse files
authored
Fixed Typos (#200)
* Fixed Typos Signed-off-by: Prashant Jain <[email protected]> * Fixed Typos Signed-off-by: Prashant Jain <[email protected]> * Fixed Typos Signed-off-by: Prashant Jain <[email protected]> --------- Signed-off-by: Prashant Jain <[email protected]>
1 parent 0e8239c commit 05ea1fe

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@ private class SOQLCache_Test {
810810
.preview()
811811
.toObject();
812812

813-
// Verify - imposible to verify system.debug
813+
// Verify - impossible to verify system.debug
814814
}
815815

816816
@IsTest

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public virtual inherited sharing class SOQL implements Queryable {
146146
// DEBUGGING
147147
Queryable preview();
148148
Map<String, Object> binding();
149-
// PREDEFINIED
149+
// PREDEFINED
150150
Queryable byId(SObject record);
151151
Queryable byId(Id recordId);
152152
Queryable byIds(Iterable<Id> recordIds);
@@ -234,7 +234,7 @@ public virtual inherited sharing class SOQL implements Queryable {
234234
Filter with(SObjectField field);
235235
Filter with(String field);
236236
Filter with(String relationshipName, SObjectField field);
237-
// COMPERATORS
237+
// COMPARATORS
238238
Filter isNull();
239239
Filter isNotNull();
240240
Filter isTrue();
@@ -300,7 +300,7 @@ public virtual inherited sharing class SOQL implements Queryable {
300300
HavingFilter min(SObjectField field);
301301
HavingFilter max(SObjectField field);
302302
HavingFilter sum(SObjectField field);
303-
// COMPERATORS
303+
// COMPARATORS
304304
HavingFilter isNull();
305305
HavingFilter isNotNull();
306306
HavingFilter isTrue();
@@ -332,7 +332,7 @@ public virtual inherited sharing class SOQL implements Queryable {
332332
public interface DataCategoryFilter {
333333
// FIELDS
334334
DataCategoryFilter with(String field);
335-
// COMPERATORS
335+
// COMPARATORS
336336
DataCategoryFilter at(String category);
337337
DataCategoryFilter at(Iterable<String> categories);
338338
DataCategoryFilter above(String category);
@@ -2431,7 +2431,7 @@ public virtual inherited sharing class SOQL implements Queryable {
24312431
this.stripAdditionalPlainFields(recordFilteredFields, record, requestedFields);
24322432
this.stripAdditionalSubQueries(recordFilteredFields, record, subQueriesRelationshipNames);
24332433

2434-
// JSON.serialize and JSON.deserialize are used to copy not writtable fields
2434+
// JSON.serialize and JSON.deserialize are used to copy not writable fields
24352435
cleanedRecords.add((SObject) JSON.deserialize(JSON.serialize(recordFilteredFields), objectTypeName));
24362436
}
24372437

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

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ private class SOQL_Test {
292292
}
293293

294294
@IsTest
295-
static void maxRelatedhAlias() {
295+
static void maxRelatedAlias() {
296296
// Test
297297
String soql = SOQL.of(CampaignMember.SObjectType)
298298
.max('Campaign', Campaign.BudgetedCost, 'budgetedCost')
@@ -1432,7 +1432,7 @@ private class SOQL_Test {
14321432
}
14331433

14341434
@IsTest
1435-
static void filterInlcudesAll() {
1435+
static void filterIncludesAll() {
14361436
// Setup
14371437
List<String> ratings = new List<String>{ 'Hot', 'Warm' };
14381438

@@ -1447,7 +1447,7 @@ private class SOQL_Test {
14471447
}
14481448

14491449
@IsTest
1450-
static void filterInlcudesSome() {
1450+
static void filterIncludesSome() {
14511451
// Setup
14521452
List<String> ratings = new List<String>{ 'Hot', 'Warm' };
14531453

@@ -2019,7 +2019,7 @@ private class SOQL_Test {
20192019
)
20202020
.add(SOQL.FilterGroup
20212021
.add(SOQL.Filter.with(Account.Industry).equal('IT'))
2022-
.add(SOQL.Filter.name().contains('MyAcccount'))
2022+
.add(SOQL.Filter.name().contains('MyAccount'))
20232023
)
20242024
)
20252025
.toString();
@@ -2752,7 +2752,7 @@ private class SOQL_Test {
27522752
}
27532753

27542754
@IsTest
2755-
static void anyonditionMatchingForMainHavingFilterGroup() {
2755+
static void anyConditionMatchingForMainHavingFilterGroup() {
27562756
// Test
27572757
String soql = SOQL.of(Lead.SObjectType)
27582758
.with(Lead.LeadSource)
@@ -2917,7 +2917,7 @@ private class SOQL_Test {
29172917
}
29182918

29192919
@IsTest
2920-
static void dataCategoryFilterAboveMultipe() {
2920+
static void dataCategoryFilterAboveMultiple() {
29212921
// Test
29222922
String soql = SOQL.of('Knowledge__kav')
29232923
.with('Title')
@@ -2941,7 +2941,7 @@ private class SOQL_Test {
29412941
}
29422942

29432943
@IsTest
2944-
static void dataCategoryFilterBelowMultipe() {
2944+
static void dataCategoryFilterBelowMultiple() {
29452945
// Test
29462946
String soql = SOQL.of('Knowledge__kav')
29472947
.with('Title')
@@ -2965,7 +2965,7 @@ private class SOQL_Test {
29652965
}
29662966

29672967
@IsTest
2968-
static void dataCategoryFilterAboveOrBelowMultipe() {
2968+
static void dataCategoryFilterAboveOrBelowMultiple() {
29692969
// Test
29702970
String soql = SOQL.of('Knowledge__kav')
29712971
.with('Title')
@@ -2977,7 +2977,7 @@ private class SOQL_Test {
29772977
}
29782978

29792979
@IsTest
2980-
static void dataCategoryWithMultipeDataCategoryFilters() {
2980+
static void dataCategoryWithMultipleDataCategoryFilters() {
29812981
// Test
29822982
String soql = SOQL.of('Knowledge__kav')
29832983
.with('Title')
@@ -2990,7 +2990,7 @@ private class SOQL_Test {
29902990
}
29912991

29922992
@IsTest
2993-
static void dataCategoryWithMultipeFilters() {
2993+
static void dataCategoryWithMultipleFilters() {
29942994
// Test
29952995
String soql = SOQL.of('Knowledge__kav')
29962996
.with('Title')
@@ -3653,7 +3653,7 @@ private class SOQL_Test {
36533653

36543654
// Verify
36553655
Assert.isNotNull(soqlException, 'Query mocking exception should be thrown.');
3656-
Assert.areEqual('Use toAggregatedProxy() to mock AggregateResult records.', soqlException.getMessage(), 'Mocking field aliasing is not supproted');
3656+
Assert.areEqual('Use toAggregatedProxy() to mock AggregateResult records.', soqlException.getMessage(), 'Mocking field aliasing is not supported');
36573657
}
36583658

36593659
@IsTest
@@ -3677,7 +3677,7 @@ private class SOQL_Test {
36773677

36783678
// Verify
36793679
Assert.isNotNull(soqlException, 'Query mocking exception should be thrown.');
3680-
Assert.areEqual('Use toAggregatedProxy() to mock AggregateResult records.', soqlException.getMessage(), 'Mocking field aliasing is not supproted');
3680+
Assert.areEqual('Use toAggregatedProxy() to mock AggregateResult records.', soqlException.getMessage(), 'Mocking field aliasing is not supported');
36813681
}
36823682

36833683
@IsTest
@@ -4170,10 +4170,10 @@ private class SOQL_Test {
41704170
insertAccounts(); // Industry is empty
41714171

41724172
// Test
4173-
Set<String> accountsIndustires = SOQL.of(Account.SObjectType).toValuesOf(Account.Industry);
4173+
Set<String> accountsIndustries = SOQL.of(Account.SObjectType).toValuesOf(Account.Industry);
41744174

41754175
// Verify
4176-
Assert.areEqual(0, accountsIndustires.size(), 'The size of the account industries set should be 0, because field is empty.');
4176+
Assert.areEqual(0, accountsIndustries.size(), 'The size of the account industries set should be 0, because field is empty.');
41774177
}
41784178

41794179
@IsTest
@@ -4217,7 +4217,7 @@ private class SOQL_Test {
42174217
}
42184218

42194219
@IsTest
4220-
static void toValuesOfRelationshipFieldWhenReleatedRecordNotExist() {
4220+
static void toValuesOfRelationshipFieldWhenRelatedRecordNotExist() {
42214221
// Test
42224222
Set<String> accountNames = SOQL.of(Account.SObjectType)
42234223
.whereAre(SOQL.Filter.name().equal('Test'))

0 commit comments

Comments
 (0)