Skip to content

Commit d8566ff

Browse files
committed
add unit test
1 parent 3376c8a commit d8566ff

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,16 @@ private class SOQL_Test {
546546
Assert.areEqual('SELECT Id, Name, Industry, AccountNumber, AnnualRevenue, BillingCity FROM Account', soql, 'The generated SOQL should match the expected one.');
547547
}
548548

549+
@IsTest
550+
static void withEmptyListOfStringFields() {
551+
// Test
552+
String soql = SOQL.of(Account.SObjectType)
553+
.with(new List<String>()).toString();
554+
555+
// Verify
556+
Assert.areEqual('SELECT Id FROM Account', soql, 'The generated SOQL should match the expected one.');
557+
}
558+
549559
@IsTest
550560
static void withStringFields() {
551561
// Test

0 commit comments

Comments
 (0)