[jbossseam-issues] [JBoss JIRA] Updated: (JBSEAM-286) SeamTest - Add support for authenticated user
Bradley Smith (JIRA)
jira-events at jboss.com
Wed Nov 8 09:15:41 EST 2006
[ http://jira.jboss.com/jira/browse/JBSEAM-286?page=all ]
Bradley Smith updated JBSEAM-286:
---------------------------------
Attachment: SeamTest.java
Here is the modified SeamTest.java again. This time, I did not reformat the source. Also, the file diffs for rev. 1.43 and my changes are listed below:
====================================================================
bash-2.05b$ diff -w SeamTest-orig.java SeamTest.java
11a12,13
> import java.security.Principal;
> import java.security.acl.Group;
81a84,85
> private Principal principal;
> private Group roles;
88a93,101
> protected Script(Principal principal, Group roles) {
> this.principal = principal;
> this.roles = roles;
> }
>
> protected Script(Principal principal) {
> this(principal,null);
> }
>
195c208
< externalContext = new MockExternalContext(servletContext, session);
---
> externalContext = new MockExternalContext(servletContext, session, principal, roles);
> SeamTest - Add support for authenticated user
> ---------------------------------------------
>
> Key: JBSEAM-286
> URL: http://jira.jboss.com/jira/browse/JBSEAM-286
> Project: JBoss Seam
> Issue Type: Feature Request
> Components: Core
> Affects Versions: 1.0.1
> Environment: All
> Reporter: Bradley Smith
> Assigned To: Gavin King
> Fix For: 1.1.0.CR1
>
> Attachments: MockExternalContext.java, MockHttpServletRequest.java, SeamTest.java, SeamTest.java
>
>
> Add a property of type Principal and another property (maybe of type Group []?) to Script. The Principal should be used by the MockHttpServletRequest to represent and authenticated user. The Group [] property should be used by the MockHttpServletRequest to support the isUserInRole() implementation.
> These properties ideally should be settable by overriding the setup() method of Script.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list