From 9afa3f031382ea8a497efa5c4f94967d8ee1a6b9 Mon Sep 17 00:00:00 2001 From: ashitsalesforce Date: Tue, 14 Jan 2025 11:34:09 -0800 Subject: [PATCH] Fix SoqlInfoTest failure caused by exception text change Fix SoqlInfoTest failure caused by exception text change --- .../java/com/salesforce/dataloader/mapping/SoqlInfoTest.java | 4 ++-- 1 file 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 f3f94b14..80acc415 100644 --- a/src/test/java/com/salesforce/dataloader/mapping/SoqlInfoTest.java +++ b/src/test/java/com/salesforce/dataloader/mapping/SoqlInfoTest.java @@ -96,8 +96,8 @@ public void testNoFields() throws SOQLParserException { try { new SOQLInfo("select from account where id = ''"); Assert.fail("should not be able to parse query"); - } catch (IllegalArgumentException e) { - assertEquals("Cannot parse empty string", e.getMessage()); + } catch (Exception e) { + assertEquals("Invalid soql: No sobject specified after 'FROM' keyword", e.getMessage()); } }