users@jersey.java.net

[Jersey] How to use JAX-RS Application with Jersey Test Framework?

From: Markus Karg <karg_at_quipsy.de>
Date: Fri, 10 Aug 2012 14:56:19 +0200

The Jersey Test Framework automatically scans all packages given to the
constructor and finds the root resource and all providers. But it does
not find a JAX-RS Application located in the same package. The problem
is that I want to write an integration test that tests exactly that
JAX-RS Application instance, not just the resources it is made of. How
to tell the framework that ignore the resources and instead set up the
Application?

 

Thanks!

Markus