Hello,
I'm looking to test some Jersey Resources which also have some @Autowired dependencies. I'd like to use the Jersey Test framework and something like EasyMock. However in my trying to get this to work I'm not sure how it is possibles since one context will belong to Grizzly and one context will belong to the unit test being run? I need access to the mock objects in the unit test to define the order of methods and return data, and then the same mock object in the resource object so it can call those methods?
Is this even possible? Seem like I would need to both use something like SpringJUnit4ClassRunning as well as passing the context to the WebAppDescriptor in JerseyTest class.
Thanks,
-jr