org.jboss.test.security.test
Class SecurityProxyUnitTestCase

java.lang.Object
  extended byTestCase
      extended byorg.jboss.test.JBossTestCase (src) 
          extended byorg.jboss.test.security.test.SecurityProxyUnitTestCase

public class SecurityProxyUnitTestCase
extends JBossTestCase (src)

Tests of the EJB security proxy.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.test.JBossTestCase (src)
delegate, deploymentException, log
 
Constructor Summary
SecurityProxyUnitTestCase(java.lang.String name)
           
 
Method Summary
static Test suite()
          Setup the test suite.
 void testMethodAccess()
          Test that the echo method is accessible by an Echo role.
 
Methods inherited from class org.jboss.test.JBossTestCase (src)
deploy, flushAuthCache, flushAuthCache, getBeanCount, getDeployerName, getDeploySetup, getDeployURL, getInitialContext, getIterationCount, getJndiInitFactory, getJndiURL, getLog, getResourceURL, getServer, getServerHost, getThreadCount, initDelegate, invoke, restartDBPool, sleep, testServerFound, undeploy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityProxyUnitTestCase

public SecurityProxyUnitTestCase(java.lang.String name)
Method Detail

testMethodAccess

public void testMethodAccess()
                      throws java.lang.Exception
Test that the echo method is accessible by an Echo role. Since the noop() method of the StatelessSession bean was not assigned any permissions it should not be accessible by any user.

Throws:
java.lang.Exception

suite

public static Test suite()
                  throws java.lang.Exception
Setup the test suite.

Throws:
java.lang.Exception