From 676b9e42a3c346a133a87d540c8e829dbbc1023d Mon Sep 17 00:00:00 2001 From: ashitsalesforce Date: Mon, 23 Oct 2023 14:28:47 -0700 Subject: [PATCH] update tests related to unsupported nested queries The message about unsupported nested queries has changed to be more specific to nested queries in SOQL SELECT clause. Tests that check for the message need to be updated too. --- .../java/com/salesforce/dataloader/mapping/SoqlInfoTest.java | 2 +- .../salesforce/dataloader/process/ProcessExtractTestBase.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/com/salesforce/dataloader/mapping/SoqlInfoTest.java b/src/test/java/com/salesforce/dataloader/mapping/SoqlInfoTest.java index 985bf2b1..9f708c7d 100644 --- a/src/test/java/com/salesforce/dataloader/mapping/SoqlInfoTest.java +++ b/src/test/java/com/salesforce/dataloader/mapping/SoqlInfoTest.java @@ -175,7 +175,7 @@ public void testNoFrom() { @Test public void testNestedQuery() { runInvalidQueryTest("select id, (select name from contacts) from account blarney", - "Nested queries are not supported"); + "Nested queries are not supported in SOQL SELECT clause"); } @Test diff --git a/src/test/java/com/salesforce/dataloader/process/ProcessExtractTestBase.java b/src/test/java/com/salesforce/dataloader/process/ProcessExtractTestBase.java index 3d76fae7..144b8061 100644 --- a/src/test/java/com/salesforce/dataloader/process/ProcessExtractTestBase.java +++ b/src/test/java/com/salesforce/dataloader/process/ProcessExtractTestBase.java @@ -217,7 +217,7 @@ protected void runTestNestedQueryErrorsCorrectly() throws ProcessInitializationE soql = "Select Account.Name, (Select Contact.LastName FROM Account.Contacts) FROM Account"; argmap = getTestConfig(soql, "Account", false); // this error message to change - runProcessNegative(argmap, "Invalid soql: Nested queries are not supported"); + runProcessNegative(argmap, "Invalid soql: Nested queries are not supported in SOQL SELECT clause"); } public abstract void testSoqlWithRelationships() throws Exception;