Я пытаюсь использовать Wiremock 1.46 с JUNIT-4.11 , и я следую примерам на веб-сайте Wiremock и когда я пытаюсь использовать следующий кусок кода
stubFor(get(urlEqualTo("/my/resource"))
.withHeader("Accept", equalTo("text/xml"))
.willReturn(aResponse()
.withStatus(200)
.withHeader("Content-Type", "text/xml")
.withBody("Some content")));
< /code>
Я получаю следующие ошибки < /p>
the method aResponse() is undefiened for the type
the method equalTo() is undefiened for the type
the method urlEqualTo() is undefiened for the type
< /code>
Я предполагаю, что это происходит, потому что мне нужен еще один файл JAR для них, но кто -нибудь знает, какие файлы JAR нужны для этих методов? < /P>
Подробнее здесь: https://stackoverflow.com/questions/232 ... r-the-type