私は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