users@jersey.java.net

Re: [Jersey] Configuring ServletConfig and ServletContext at test time

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Fri, 18 Dec 2009 10:51:54 +0100

Hi Arnaud,

You can use the Grizzly Web container support.

See:

https://jersey.dev.java.net/nonav/apidocs/latest/jersey-test-framework/com/sun/jersey/test/framework/package-summary.html

Paul.


On Dec 18, 2009, at 10:24 AM, Arnaud Bailly wrote:

>
> Hello,
> I would like to test REST resources that use
>
> @Context ServletConfig config
>
> to extract some information from its environment. How can I
> configure this
> context injection within a test using jersey test framework ?
>
> Thanks in advance,
> Arnaud
> --
> View this message in context: http://n2.nabble.com/Configuring-ServletConfig-and-ServletContext-at-test-time-tp4185618p4185618.html
> Sent from the Jersey mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>