Does anyone have any tips on writing tests that compare two REST services? We are doing this as a form of regression testing.
I was hoping to do something along the
I would use jUnit and some of the example test cases from the Jersey source as a starting point. Without knowing specifically how you want to determine "identical" responses, you can make a request to each in your test case and iterate through the response, convert it to a string and test for equals()
, etc. Here is an example of a JSONP from JAXB test.