I want to tests my rest services by junit. The services are in BnD bundle(Felix).Actually, I want to write test cases for rest url. Can you suggests me any doc or can you tell me how can I do this.
Please remember, My project in BnD bundles.
I want to tests my rest services by junit. The services are in BnD bundle(Felix).Actually, I want to write test cases for rest url. Can you suggests me any doc or can you tell me how can I do this.
Please remember, My project in BnD bundles.
if your need is to call a RESTÂ service, wherever it is deployed or bundled, you can use rest-assured, which is a simple library to test REST (HTTP in fact) services. For instance, you can do:
given().
parameters("firstName", "John", "lastName", "Doe").
when().
post("/greetMe").
then().
body(hasXPath("/greeting/firstName[text()='John']")).
I use it extensively on a daily basis, it is really feature complete.