Reputation: 83
i have been given a project to write test cases for restful service using junit. The restful service provides json data as output.I am new to this, although i have attained basic knowledge but still do not know what to test.Please help.
Upvotes: 0
Views: 4627
Reputation: 32969
Ok. So there are several things that could / should be done.
Both of the above to not require a deployed service to test and so work well in the test phase of maven.
The fact that the service provides JSon should not be a big deal. Just use Jackson to unmarshal it into a domain object and verify the values are what you expect.
Upvotes: 1