Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
#47 Surrounding token with %%
Browse files Browse the repository at this point in the history
  • Loading branch information
rjrudin committed Aug 13, 2015
1 parent 982062d commit c1da2df
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ publishUrl=file:../gh-pages-marklogic-java/releases
# 2.0a15 AbstractResourceCommand now sorts files
# 2.0b1 Repackaged, added GroupManager
# 2.0b2 Using ml-javaclient-util 2.2
version=2.0b2
# 2.0b3 Cert template IDs are stored in the custom tokens map
version=2.0b3

Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ protected void storeTokenForResourceId(SaveReceipt receipt, CommandContext conte
resourceName = tokens[tokens.length - 3];
}

String key = resourceName + "-id-" + receipt.getResourceId();
String key = "%%" + resourceName + "-id-" + receipt.getResourceId() + "%%";
if (logger.isInfoEnabled()) {
logger.info(format("Storing token with key '%s' and value '%s'", key, idValue));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ protected String[] getResourceNames() {
@Override
protected void afterResourcesCreated() {
Map<String, String> customTokens = appConfig.getCustomTokens();
String key = "certificate-templates-id-sample-app-template";
String key = "%%certificate-templates-id-sample-app-template%%";
assertNotNull(
"The cert template ID should have been stored in the tokens map so that it can be referenced in an HTTP server file",
customTokens.get(key));
Expand All @@ -45,7 +45,7 @@ protected void afterResourcesCreated() {
@Override
protected void afterResourcesCreatedAgain() {
Map<String, String> customTokens = appConfig.getCustomTokens();
String key = "certificate-templates-id-sample-app-template";
String key = "%%certificate-templates-id-sample-app-template%%";
assertNotNull("Verifying that the cert template ID is stored on an update as well", customTokens.get(key));
}

Expand Down

0 comments on commit c1da2df

Please sign in to comment.