public interface TemplateProcessor
Modifier and Type | Method and Description |
---|---|
boolean |
containsJsonPathTemplateEntry(String line) |
boolean |
containsTemplateEntry(String line) |
String |
jsonPathFromTemplateEntry(String line) |
String |
transform(org.springframework.cloud.contract.spec.internal.Request request,
String testContents)
For the given
Request and the test contents should perform a transformation
and return the converted test. |
String transform(org.springframework.cloud.contract.spec.internal.Request request, String testContents)
Request
and the test contents should perform a transformation
and return the converted test.boolean containsTemplateEntry(String line)
true
if the current line contains template related entry. E.g. for
Handlebars if a line contains {{{...}}} then it's considered to contain template
related entryboolean containsJsonPathTemplateEntry(String line)
true
if the current line contains template related entry for json
path processing. E.g. for Handlebars if a line contains {{{jsonpath ...}}} or
{{{jsonPath ...}}} then it's considered to contain template related entry for json
path processingString jsonPathFromTemplateEntry(String line)
$.a.b.c
. Returns empty string if there's no matching json path entryCopyright © 2016–2021 Spring. All rights reserved.