Skip to content

Commit

Permalink
Merge pull request #1039 from ashitsalesforce/master
Browse files Browse the repository at this point in the history
added test to check for regression in W-8551311
  • Loading branch information
ashitsalesforce authored Mar 23, 2024
2 parents 57a1ad2 + c7cbd55 commit 181c6bb
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<dependency>
<groupId>com.force.api</groupId>
<artifactId>force-partner-api</artifactId>
<version>59.0.0</version>
<version>60.1.1</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-dbcp2 -->
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,27 @@ private String[] createLead(final String uid) throws ConnectionException {
final String[] leadidArr = new String[] { result[0].getId() };
return leadidArr;
}

/**
* Tests the extract operation on Account. Verifies that an extract operation with a soql query is performed
* correctly.
*/
@Test
public void testExtractSObjectWithJSONFieldType() throws Exception {
try {
// Test for regression in the fix for bug id: W-8551311
// describeSObject for ApiEvent sObject fails if JSON FieldType enum
// does not exist in WSC because 'Records' field is of type JSON.

final String soql = "SELECT Id FROM ApiEvent";
final Map<String, String> argmap = getExtractionTestConfig(soql, "ApiEvent", false);
// run the extract
runProcess(argmap, 0);
} finally {
// noop
}
}

/**
* @param enableLastRunOutput
*/
Expand Down

0 comments on commit 181c6bb

Please sign in to comment.