Skip to content

Commit

Permalink
Merge branch 'issue-601' of github.com:vivektiwary/zerocode into issu…
Browse files Browse the repository at this point in the history
…e-601
  • Loading branch information
vivektiwary committed Dec 19, 2023
2 parents ac5eb57 + 4206fa2 commit bb0ab5e
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,13 @@ public static boolean checkDigNeeded(ObjectMapper mapper, Step thisStep, String
return allTokens.toString().contains(tokenString) || allTokens.toString().contains(alternateTokenString);
}

/**
* Retrieves the first token from the given value string that matches the format "${token}".
* Ph = Placeholder (e.g. ${JSON.FILE:unit_test_files/filebody_unit_test/common/common_content.json} )
*
* @param valueString The string from which to extract the jsonfile path
* @return The extracted token, or null if no token is found
*/
public static String getJsonFilePhToken(String valueString) {
if (valueString != null) {
List<String> allTokens = getTestCaseTokens(valueString);
Expand Down

0 comments on commit bb0ab5e

Please sign in to comment.