users@jersey.java.net

[Jersey] Re: Unit Testing with Spring

From: Paul Sandoz <Paul.Sandoz_at_oracle.com>
Date: Thu, 13 Jan 2011 09:59:39 +0100

On Jan 12, 2011, at 2:22 PM, Jonathan Cook - FM&T wrote:

> That was it :)
>
> Now I would like to be able to mock out that autowired bean. I came
> across this but it looks like a bit of work, is there anything neater?
> http://jersey.576304.n2.nabble.com/unit-test-a-jersey-resource-with-mocked-spring-beans-td581233.html
>

Unfortunately not. We don't have any bootstrapping for mocking
support. The current recommended approach is to use an HTTP container.

Paul.