users@jersey.java.net

How to Create Jersey Unit Tests

From: <JohnM_Gallagher_at_timeinc.com>
Date: Fri, 22 Jan 2010 12:05:52 -0500

I am developing a project with jersey and spring. I am trying to work
out a good way to run unit tests. What I would like to do is to load my
jersey class within a spring context, but I would like all of the spring
injected members of the jersey class to be mocked. Then some kind of web
based testing framework, such as HttpUnit, JWebUnit, or Jetty would call
the Jersey object. How could I do this? Thank you.