I am getting below error while checking the output of my junit, it seems there is something wrong with JSON path provided with spring.
java.lang.NoSuchMethodError: com.jayway.jsonpath.JsonPath.compile(Ljava/lang/String;[Lcom/jayway/jsonpath/Filter;)Lcom/jayway/jsonpath/JsonPath;
at org.springframework.test.util.JsonPathExpectationsHelper.<init>(JsonPathExpectationsHelper.java:53)
at org.springframework.test.web.servlet.result.JsonPathResultMatchers.<init>(JsonPathResultMatchers.java:43)
at org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath(MockMvcResultMatchers.java:133)
at com.name.registration.test.ServerConnectionTest.testLogin_Simple(ServerConnectionTest.java:20)
Junit code
callApi(C.login, input)
.andExpect(jsonPath("$.success").value(true));