[jboss-cvs] JBossAS SVN: r79310 - trunk/testsuite/src/main/org/jboss/test/security/test/authorization.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Oct 9 17:58:17 EDT 2008
Author: mmoyses
Date: 2008-10-09 17:58:17 -0400 (Thu, 09 Oct 2008)
New Revision: 79310
Modified:
trunk/testsuite/src/main/org/jboss/test/security/test/authorization/XACMLEJBIntegrationUnitTest.java
Log:
JBAS-6067: remove XACML policy when undeploying
Modified: trunk/testsuite/src/main/org/jboss/test/security/test/authorization/XACMLEJBIntegrationUnitTest.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/security/test/authorization/XACMLEJBIntegrationUnitTest.java 2008-10-09 21:26:44 UTC (rev 79309)
+++ trunk/testsuite/src/main/org/jboss/test/security/test/authorization/XACMLEJBIntegrationUnitTest.java 2008-10-09 21:58:17 UTC (rev 79310)
@@ -91,27 +91,7 @@
public void testMethodAccess() throws Exception
{
log.debug("+++ testMethodAccess");
- login();
- Object obj = getInitialContext().lookup("spec.StatelessSession");
- obj = PortableRemoteObject.narrow(obj, StatelessSessionHome.class);
- StatelessSessionHome home = (StatelessSessionHome) obj;
- log.debug("Found StatelessSessionHome");
- StatelessSession bean = home.create();
- log.debug("Created spec.StatelessSession");
- log.debug("Bean.echo('Hello') -> "+bean.echo("Hello"));
-
- try
- {
- // This should not be allowed
- bean.noop();
- fail("Was able to call StatelessSession.noop");
- }
- catch(RemoteException e)
- {
- log.debug("StatelessSession.noop failed as expected");
- }
- bean.remove();
- logout();
+ process();
}
/** Test that redeploying the deployment unit does not add
@@ -126,6 +106,11 @@
deploy(getResourceURL(login_config));
log.debug("+++ testJBAS6067");
+ process();
+ }
+
+ private void process() throws Exception
+ {
login();
Object obj = getInitialContext().lookup("spec.StatelessSession");
obj = PortableRemoteObject.narrow(obj, StatelessSessionHome.class);
More information about the jboss-cvs-commits
mailing list