I am currently working on a REST application which is based on Guice dependency injection and powered by Jersey.
While it is relatively simple to do unit tests which call endpoint methods and filters directly, I am struggling to find a solution which can test the app in integration, meaning that I would supply path and payload rather than mocked HttpRequest.
In Spring world, I find the class MockMvc very handy for this type of testing.
Are there any equivalents of MockMvc in Guice + Jersey world?
If not, what is the "best practice" for integration testing?
Aucun commentaire:
Enregistrer un commentaire