users@jersey.java.net

unit test a jersey resource with mocked spring beans

From: Peter De Koster <peter.de.koster_at_gmail.com>
Date: Tue, 22 Jul 2008 12:20:50 +0200

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