public LambdaDslObject stringMatcher(final String name, final String regex, final String value) { object.stringMatcher(name, regex, value); return this; }
public LambdaDslObject stringMatcher(final String name, final String example) { object.stringMatcher(name, example); return this; }
/** * Attribute that must match the regular expression * @param name attribute name * @param regex regular expression * @deprecated Use the version that takes an example value */ @Deprecated public PactDslJsonBody stringMatcher(String name, String regex) { generators.addGenerator(Category.BODY, matcherKey(name), new RegexGenerator(regex)); stringMatcher(name, regex, new Generex(regex).random()); return this; }
/** * Attribute that must match the regular expression * @param name attribute name * @param regex regular expression * @deprecated Use the version that takes an example value */ @Deprecated public PactDslJsonBody stringMatcher(String name, String regex) { generators.addGenerator(Category.BODY, matcherKey(name), new RegexGenerator(regex)); stringMatcher(name, regex, new Generex(regex).random()); return this; }