[seam-commits] Seam SVN: r12368 - branches/community/Seam_2_2/src/test/unit/org/jboss/seam/test/unit/web.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Fri Apr 2 04:00:58 EDT 2010
Author: jharting
Date: 2010-04-02 04:00:56 -0400 (Fri, 02 Apr 2010)
New Revision: 12368
Modified:
branches/community/Seam_2_2/src/test/unit/org/jboss/seam/test/unit/web/IdentityRequestWrapperTest.java
Log:
Fixed test ordering issue revealed by TestNG upgrade.
Modified: branches/community/Seam_2_2/src/test/unit/org/jboss/seam/test/unit/web/IdentityRequestWrapperTest.java
===================================================================
--- branches/community/Seam_2_2/src/test/unit/org/jboss/seam/test/unit/web/IdentityRequestWrapperTest.java 2010-04-01 23:30:31 UTC (rev 12367)
+++ branches/community/Seam_2_2/src/test/unit/org/jboss/seam/test/unit/web/IdentityRequestWrapperTest.java 2010-04-02 08:00:56 UTC (rev 12368)
@@ -29,6 +29,10 @@
public void testWithSeamSecurityEnabled()
{
HttpServletRequest request = initializeWrappedRequest();
+ if (!Identity.isSecurityEnabled())
+ {
+ Identity.setSecurityEnabled(true);
+ }
assert request.getUserPrincipal() != null && request.getUserPrincipal().getName().equals(SEAM_USER);
assert request.getRemoteUser() != null && request.getRemoteUser().equals(SEAM_USER);
assert request.isUserInRole(SEAM_ROLE);
More information about the seam-commits
mailing list