users@jersey.java.net

Re: [Jersey] unit test a jersey resource with mocked spring beans

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Tue, 22 Jul 2008 13:42:55 +0200

Hi Peter,

See the unit tests for the spring code. It is using embedded Jetty.

Paul.

Peter De Koster wrote:
> Hi,
>
> I'm using spring 2.5.5 and jersey 0.8-ea and it works nicely.
> I'd like to test my resource classes using the HttpServerFactory +
> Client classes.
> To do this I need to mock the injected spring beans (for several reasons
> - among others because it's an ear project..).
> My question is how ? Has anything been provided for this, or scheduled
> to be provided, or could anyone propose an alternative
>
> Kind regards,
>
> Peter

-- 
| ? + ? = To question
----------------\
    Paul Sandoz
         x38109
+33-4-76188109