Skip to content

Commit

Permalink
Merge pull request #241 from ashitsalesforce/master
Browse files Browse the repository at this point in the history
Minor bug fix and an integration test fix
  • Loading branch information
ashitsalesforce authored Jan 12, 2021
2 parents 3bc7313 + 069266c commit 051f5cb
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 10 deletions.
4 changes: 2 additions & 2 deletions release/mac/dataloader.command
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ then
echo "Zulu OpenJDK 11 is not installed. Download Zulu OpenJDK 11 for macOS here: https://www.azul.com/downloads/zulu/zulu-mac/"
else
echo "$JAVA_HOME"
cd DATALODER_WORK_DIRECTORY_PLACEHOLDER #change to your own customized directory
java -XstartOnFirstThread -jar dataloader-@@FULL_VERSION@@-uber.jar salesforce.config.dir=DATALODER_WORK_DIRECTORY_PLACEHOLDER/configs
cd DATALOADER_WORK_DIRECTORY_PLACEHOLDER
java -XstartOnFirstThread -jar dataloader-@@FULL_VERSION@@-uber.jar salesforce.config.dir=DATALOADER_WORK_DIRECTORY_PLACEHOLDER/configs
fi
2 changes: 1 addition & 1 deletion release/mac/install.command
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ rm $DL_FULL_PATH/install.command 1>/dev/null
rm $DL_FULL_PATH/dataloader.ico 1>/dev/null
rm $DL_FULL_PATH/fileicon 1>/dev/null

sed -i '' 's|DATALODER_WORK_DIRECTORY_PLACEHOLDER|'"$DL_FULL_PATH"'|g' "$DL_FULL_PATH"/dataloader.command
sed -i '' 's|DATALOADER_WORK_DIRECTORY_PLACEHOLDER|'"$DL_FULL_PATH"'|g' "$DL_FULL_PATH"/dataloader.command
sed -i '' 's|DATALOADER_VERSION_PLACEHOLDER|'"$DATALOADER_VERSION"'|g' "$DL_FULL_PATH"/dataloader.command
sed -i '' 's|DATALOADER_SHORT_VERSION_PLACEHOLDER|'"$DATALOADER_SHORT_VERSION"'|g' "$DL_FULL_PATH"/dataloader.command
sed -i '' 's|DATALOADER_UBER_JAR_NAME_PLACEHOLDER|'"$DATALOADER_UBER_JAR_NAME"'|g' "$DL_FULL_PATH"/dataloader.command
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/com/salesforce/dataloader/ui/MappingDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,6 @@ public void widgetSelected(SelectionEvent event) {
public void widgetSelected(SelectionEvent event) {
FileDialog dlg = new FileDialog(shell, SWT.SAVE);
Config config = controller.getConfig();
dlg.setFileName(config.getString(Config.MAPPING_FILE));
dlg.setFilterPath(config.getString(Config.MAPPING_FILE));
dlg.setFilterExtensions(new String[] { "*.sdl" });
String filename = dlg.open();
boolean cancel = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,20 @@ public void testDescribeSObjects() throws Exception {

int numDescribes = 0;
for (String objectType : client.getDescribeGlobalResults().keySet()){
DescribeSObjectResult describeResult = client.describeSObject(objectType);
numDescribes++;
assertNotNull(describeResult);
assertEquals(objectType, describeResult.getName());
assertEquals(numDescribes, client.getEntityDescribeMap().size());
try {
DescribeSObjectResult describeResult = client.describeSObject(objectType);
numDescribes++;
assertNotNull(describeResult);
assertEquals(objectType, describeResult.getName());
assertEquals(numDescribes, client.getEntityDescribeMap().size());
} catch (Exception ex) {
if (ex.getMessage().contains("jsonNot")) {
System.out.println("PartnerClient.testDescribeSObjects: Unable to call describeSObject for " + objectType);
} else {
throw ex;

}
}
}
}

Expand Down

0 comments on commit 051f5cb

Please sign in to comment.