Skip to content

Commit 5a789d3

Browse files
authored
CAMEL-23716: align RawPayloadTest header constants with renamed Salesforce headers (#1833)
The CAMEL-23716 commit renamed Salesforce header string values from short names (sObjectId, sObjectIdValue) to CamelSalesforce-prefixed names (CamelSalesforceSObjectId, CamelSalesforceSObjectIdValue). The plain Camel test was updated but the camel-spring-boot copy still used hardcoded literal strings, causing 10/39 test variants to fail. Use SalesforceEndpointConfig constants instead of literal strings.
1 parent 35accd2 commit 5a789d3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • components-starter/camel-salesforce-starter/src/test/java/org/apache/camel/component/salesforce/springboot

components-starter/camel-salesforce-starter/src/test/java/org/apache/camel/component/salesforce/springboot/RawPayloadTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ private void setupRequestResponse(String format, String endpointUri) {
167167
requestBody = "{ \"request\" : \"mock\" }";
168168
}
169169
headers = new HashMap<>();
170-
headers.put("sObjectId", "mockId");
171-
headers.put("sObjectIdValue", "mockIdValue");
170+
headers.put(SalesforceEndpointConfig.SOBJECT_ID, "mockId");
171+
headers.put(SalesforceEndpointConfig.SOBJECT_EXT_ID_VALUE, "mockIdValue");
172172
headers.put("id", "mockId");
173173
headers.put(SalesforceEndpointConfig.APEX_QUERY_PARAM_PREFIX + "id", "mockId");
174174

0 commit comments

Comments
 (0)