Skip to content

Commit 0ba5258

Browse files
committed
Change Line 226 to isNotBlank in fflib_SObjects.cls
On branch change-SObjects Changes to be committed: modified: sfdx-source/apex-common/main/classes/fflib_SObjects.cls modified: sfdx-source/apex-common/test/classes/fflib_SObjectsTest.cls
1 parent f922242 commit 0ba5258

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

sfdx-source/apex-common/main/classes/fflib_SObjects.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ public virtual class fflib_SObjects
223223
{
224224
for (SObjectField sObjectField : sObjectFields)
225225
{
226-
if (String.isBlank((String) record.get(sObjectField)))
226+
if (String.isNotBlank((String) record.get(sObjectField)))
227227
{
228228
result.add(record);
229229
break;

sfdx-source/apex-common/test/classes/fflib_SObjectsTest.cls

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,15 @@ private class fflib_SObjectsTest
7474
{
7575
DomainAccounts domain = generateDomain();
7676

77-
System.assert(domain.selectWithShippingCountry().size() == 3);
77+
System.assert(domain.selectWithShippingCountry().size() == 4);
7878
}
7979

8080
@IsTest
8181
static void itShouldReturnRecordsWithAllFieldValues()
8282
{
8383
DomainAccounts domain = generateDomain();
8484

85-
System.assert(domain.selectPopulatedRecords().size() == 3);
85+
System.assert(domain.selectPopulatedRecords().size() == 4);
8686
}
8787

8888
@IsTest
@@ -92,7 +92,7 @@ private class fflib_SObjectsTest
9292
String country = 'Holland';
9393
domain.setShippingCountry(country);
9494

95-
System.assert(domain.selectByShippingCountry(country).size() == 6);
95+
System.assert(domain.selectByShippingCountry(country).size() == 7);
9696
}
9797

9898

@@ -135,7 +135,8 @@ private class fflib_SObjectsTest
135135
new Account(Name = 'C', ShippingCountry = 'UK'),
136136
new Account(Name = 'D', ShippingCountry = ''),
137137
new Account(Name = 'E'),
138-
new Account()
138+
new Account(),
139+
new Account(Name = 'G', ShippingCountry = 'Canada')
139140
}
140141
);
141142
return domain;

0 commit comments

Comments
 (0)