File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments