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.