dev@jersey.java.net

Re: [Jersey] Require SSL on a per-method basis?

From: James Russo <jr_at_halo3.net>
Date: Thu, 22 Apr 2010 09:07:53 -0400

Thanks. This was very helpful. I've attached the test case to the issue. The faking security is also helpful in my own test cases..

regards,

-jr

On Apr 22, 2010, at 4:16 AM, Paul Sandoz wrote:

>> May want a new package for annotations? Sorry no unit tests, not sure how to really unit test that thing with isSecure() from the container?
>>
>
> See:
>
> com.sun.jersey.impl.container.grizzly.web.RolesAllowedTest
>
> in the jersey-test module. It will show you how to fake a SecurityContext implementation.
>
> Paul.