junit java.lang.NoClassDefFoundError: net/minidev/json/parser/ParseException
junit test测试的时候出现java.lang.NoClassDefFoundError: net/minidev/json/parser/ParseException错误
java.lang.NoClassDefFoundError: net/minidev/json/parser/ParseException at com.jayway.jsonpath.spi.JsonProviderFactory$1.create(JsonProviderFactory.java:27) at com.jayway.jsonpath.spi.JsonProviderFactory.createProvider(JsonProviderFactory.java:33) at com.jayway.jsonpath.JsonPath.read(JsonPath.java:211) at org.springframework.test.util.JsonPathExpectationsHelper.evaluateJsonPath(JsonPathExpectationsHelper.java:71) at org.springframework.test.util.JsonPathExpectationsHelper.assertValue(JsonPathExpectationsHelper.java:88) at org.springframework.test.web.servlet.result.JsonPathResultMatchers$2.match(JsonPathResultMatchers.java:65) at org.springframework.test.web.servlet.MockMvc$1.andExpect(MockMvc.java:141) at net.suntec.dynabiz.controller.MsgContentControllerTest.testInsertMsgContent(MsgContentControllerTest.java:94) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597)
在使用jsonpath的时候出现的,原因是缺少jar包
需要导入json-smart-1.1.1.jar文件
来源://作者:/更新时间:2014-02-23
顶
踩
相关文章: