users@jersey.java.net

[Jersey] Resource locator unit test with ResourceContext

From: <abrian_at_netapp.com>
Date: Fri, 3 Oct 2014 14:13:18 +0000 (UTC)

I have resource locators that use ResourceContext to create the sub
resource class. When I attempt to tests those locator methods, I need
to provide a ResourceContext (which is normally injected). Is there a
good strategy for that? Mocking is somewhat cumbersome, and I'm
wondering if there isn't a better way.

Thanks