users@jersey.java.net

[Jersey] help with authentication in test case

From: poc <dangadadanga_at_yahoo.com>
Date: Tue, 15 Feb 2011 13:02:28 -0800 (PST)

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

-- 
View this message in context: http://jersey.576304.n2.nabble.com/help-with-authentication-in-test-case-tp6029265p6029265.html
Sent from the Jersey mailing list archive at Nabble.com.