我正在尝试存根交互(常规代码)
stubInteraction(
post(urlEqualTo("/someUrl"))
.withRequestBody(matchingJsonPath("\$.firstName"))
aResponse()
.withBody("")
.withStatus(200)
我收到异常
Problem accessing /someUrl. Reason:
com.jayway.jsonpath.JsonPath.read(Ljava/lang/String;Ljava/lang/String;[Lcom/jayway/jsonpath/Filter;)Ljava/lang/Object;</pre></p><h3>Caused by:</h3><pre>java.lang.NoSuchMethodError: com.jayway.jsonpath.JsonPath.read(Ljava/lang/String;Ljava/lang/String;[Lcom/jayway/jsonpath/Filter;)Ljava/lang/Object;
at com.github.tomakehurst.wiremock.matching.ValuePattern.isJsonPathMatch(ValuePattern.java:194)
对于 json:
{"firstName":"Jan"}
我做错了什么?