我想测试一个REST资源:REST资源测试
@GET
@Path("/{dbName}")
@Produces(MediaType.APPLICATION_JSON)
public String getRequest(@PathParam("dbName") String dbName)
throws JSONException {
}
我想这样做:
assert(someExpectedOutput,getRequest())
现在怎么路径将为@Path注释设置??
这可能有助于进行集成测试:http://www.baeldung.com/2011/10/13/integration-testing-a-rest-api/ – Eugen