[jboss-cvs] JBossAS SVN: r70144 - projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/service/unit.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Feb 26 20:58:18 EST 2008
Author: ALRubinger
Date: 2008-02-26 20:58:18 -0500 (Tue, 26 Feb 2008)
New Revision: 70144
Modified:
projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/service/unit/ServiceUnitTestCase.java
Log:
Set proper security context for ServiceOne
Modified: projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/service/unit/ServiceUnitTestCase.java
===================================================================
--- projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/service/unit/ServiceUnitTestCase.java 2008-02-27 01:40:33 UTC (rev 70143)
+++ projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/service/unit/ServiceUnitTestCase.java 2008-02-27 01:58:18 UTC (rev 70144)
@@ -111,6 +111,8 @@
{
try
{
+ SecurityAssociation.setPrincipal(new SimplePrincipal("somebody"));
+ SecurityAssociation.setCredential("password".toCharArray());
ServiceOneRemote test = (ServiceOneRemote) getInitialContext().lookup("ServiceOne/remote");
for (int j = 0 ; j < count ; j++)
{
More information about the jboss-cvs-commits
mailing list