rest - Unit-testing Jersey with Mocks - Stack Overflow
Edit : this solution only works with Jersey 1.x, and is therefore quite outdated.
It refers to http://geek.riffpie.com/unit-testing-restful-jersey-services-glued-together-with-spring/ library.
If you use Spring, you can extend AbstractSpringAwareJerseyTest instead of JerseyTest, and inject whatever you need.
Read full article from rest - Unit-testing Jersey with Mocks - Stack Overflow
No comments:
Post a Comment