public String replaceVariables(final String text) { return replaceVariables(text, this.variables, this); }
String replaceVariables(final String text, Map<String, String> variables) { return replaceVariables(text, variables, null); } }
String replaceVariables(final String text, Map<String, String> variables) { return replaceVariables(text, variables, null); } }
String replaceVariables(final String text, Map<String, String> variables) { return replaceVariables(text, variables, null); } }
public String replaceVariables(final String text) { return replaceVariables(text, this.variables, this); }
public String replaceVariables(final String text) { return replaceVariables(text, this.variables, this); }
@Then("^the response should not contain variable \"([^\"]*)\"$") public void checkResponseTextDoesNotContain(String substring) { substring = replaceVariables(substring); String actual = localRepo.stdOut.toString().replaceAll(LINE_SEPARATOR, "") .replaceAll("\\\\", "/"); assertFalse(actual, actual.contains(substring)); }
@Then("^the response should contain variable \"([^\"]*)\"$") public void checkResponseTextContains(String substring) { substring = replaceVariables(substring); String actual = localRepo.stdOut.toString().replaceAll(LINE_SEPARATOR, "") .replaceAll("\\\\", "/"); assertTrue("'" + actual + "' does not contain '" + substring + "'", actual.contains(substring)); }
@Then("^the response should contain variable \"([^\"]*)\"$") public void checkResponseTextContains(String substring) { substring = replaceVariables(substring); String actual = localRepo.stdOut.toString().replaceAll(LINE_SEPARATOR, "") .replaceAll("\\\\", "/"); assertTrue("'" + actual + "' does not contain '" + substring + "'", actual.contains(substring)); }
@Then("^the response should not contain variable \"([^\"]*)\"$") public void checkResponseTextDoesNotContain(String substring) { substring = replaceVariables(substring); String actual = localRepo.stdOut.toString().replaceAll(LINE_SEPARATOR, "") .replaceAll("\\\\", "/"); assertFalse(actual, actual.contains(substring)); }
@Then("^the response should not contain variable \"([^\"]*)\"$") public void checkResponseTextDoesNotContain(String substring) { substring = replaceVariables(substring); String actual = localRepo.stdOut.toString().replaceAll(LINE_SEPARATOR, "") .replaceAll("\\\\", "/"); assertFalse(actual, actual.contains(substring)); }
@Then("^the response should contain variable \"([^\"]*)\"$") public void checkResponseTextContains(String substring) { substring = replaceVariables(substring); String actual = localRepo.stdOut.toString().replaceAll(LINE_SEPARATOR, "") .replaceAll("\\\\", "/"); assertTrue("'" + actual + "' does not contain '" + substring + "'", actual.contains(substring)); }
for (Entry<String, String> entry : featureMap.entrySet()) { if (entry.getValue().length() > 0) { expected.put(entry.getKey(), replaceVariables(entry.getValue()));
for (Entry<String, String> entry : featureMap.entrySet()) { if (entry.getValue().length() > 0) { expected.put(entry.getKey(), replaceVariables(entry.getValue()));
for (Entry<String, String> entry : featureMap.entrySet()) { if (entry.getValue().length() > 0) { expected.put(entry.getKey(), replaceVariables(entry.getValue()));