public LambdaDslJsonArray stringMatcher(final String regex) { pactArray.stringMatcher(regex); return this; }
public LambdaDslJsonArray stringMatcher(final String regex, final String example) { pactArray.stringMatcher(regex, example); return this; }
/** * Element that must match the regular expression * @param regex regular expression * @deprecated Use the version that takes an example value */ @Deprecated public PactDslJsonArray stringMatcher(String regex) { generators.addGenerator(Category.BODY, rootPath + appendArrayIndex(1), new RandomStringGenerator(10)); stringMatcher(regex, new Generex(regex).random()); return this; }
/** * Element that must match the regular expression * @param regex regular expression * @deprecated Use the version that takes an example value */ @Deprecated public PactDslJsonArray stringMatcher(String regex) { generators.addGenerator(Category.BODY, rootPath + appendArrayIndex(1), new RandomStringGenerator(10)); stringMatcher(regex, new Generex(regex).random()); return this; }