我正在尝试使用 Junit 4.8 和具有依赖关系的 maven3 设置一个简单的放心测试用例
<dependency>
<groupId>com.jayway.restassured</groupId>
<artifactId>rest-assured</artifactId>
<version>1.8.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8</version>
<scope>test</scope>
</dependency>
但这让我
Caused by: java.lang.ClassNotFoundException: org.apache.http.client.methods.HttpPatch
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 34 more
我使用了来自https://code.google.com/p/rest-assured/wiki/GettingStarted的文档 并检查了https://code.google.com/p/rest-assured/wiki/FAQ
非常欢迎任何帮助