users@jersey.java.net

[Jersey] Re: PreemptiveAuth in Jersey test framework

From: Pavel Bucek <pavel.bucek_at_oracle.com>
Date: Fri, 13 Jan 2012 12:56:28 +0100

Hi Robert,

Jersey Test Framework currently does not support any auth settings on
container side, but we already needed to test this, see
http://java.net/projects/jersey/sources/svn/content/trunk/jersey/samples/https-clientserver-grizzly/src/test/java/com/sun/jersey/samples/https_grizzly/MainTest.java?rev=5594.

Its not that hard to use and you even could extract core functionality
into some abstract class (if you need this in more than one test).

Regards,
Pavel

On 1/13/12 12:38 PM, Robert Naczinski wrote:
> Hello,
>
> I use Jersey test framework for the development and testing. Can I add
> my test PreemptiveAuth?
>
> Has someone already done something and help me? A snipet would be great.
>
> I'm using Grizzly Web Container.
>
> Regards,
>
> Robert
>