0
我试图存根交互(Groovy代码)异常在matchingJsonPath与wiremock
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"}
我在做什么错误?
谢谢,我会努力 – MariuszS 2014-11-25 09:57:05
单机版包括老班'javax.servlet.http.HttpServletRequest'没有'isAsyncStarted',所以我仍然有问题。 – MariuszS 2014-11-25 11:51:32