Hello Victor,
see https-clientserver-grizzly sample [1]. Its not very nice or
straightforward, additionally jersey-test-framework is not used (this
solution is only applicable to grizzly) but it works.
Feel free to file enhancement request for this functionality, we
definitely could have better solution.
Hope it helps.
Regards,
Pavel
[1]
http://download.java.net/maven/2/com/sun/jersey/samples/https-clientserver-grizzly/1.6-SNAPSHOT/https-clientserver-grizzly-1.6-SNAPSHOT-project.zip
On 02/15/2011 10:02 PM, poc wrote:
> Hello,
>
> I have a jersey service deployed under websphere. Authentication was set up
> so that in my service I can say
> request.getUserPrincipal().getName() and I get the user's id.
>
> The problem I run into is setting up a test case (using JerseyTest) to
> provide the userPrincipal. Has anybody tried it?
>
> Thanks!
> Victor
>
>