users@jersey.java.net

[Jersey] jersey test framework: servlet container

From: Tobias Weigel <weigel_at_dkrz.de>
Date: Thu, 17 Jul 2014 13:26:08 +0200

Hi,

I am trying to implement a JerseyTest-based unit test and since I
require a servletContext in my Resource class, I need to run the test on
a proper Servlet.
The documentation says at [1] that there are two container factories
based on Grizzly, one of which is Servlet-based, yet I find the docs
confusing as they only specify a pom snippet for the non-servlet one.
How is the "GrizzlyWebTestContainerFactory" enabled? This should be
clarified in the docs.

Thanks for any advice,
Tobias Weigel

[1] https://jersey.java.net/documentation/latest/user-guide.html#d0e15474

-- 
Tobias Weigel
Department of Data Management
Deutsches Klimarechenzentrum GmbH (German Climate Computing Center)
Bundesstr. 45a
20146 Hamburg
Germany
Tel.: +49 40 460094 104
E-Mail: weigel_at_dkrz.de
Website: www.dkrz.de
Managing Director: Prof. Dr. Thomas Ludwig
Sitz der Gesellschaft: Hamburg
Amtsgericht Hamburg HRB 39784