org.jboss.test.web.test
Class FormAuthUnitTestCase

java.lang.Object
  extended byTestCase
      extended byorg.jboss.test.JBossTestCase (src) 
          extended byorg.jboss.test.web.test.FormAuthUnitTestCase
Direct Known Subclasses:
FormAuthUnitTestCase (src)

public class FormAuthUnitTestCase
extends JBossTestCase (src)

Tests of form authentication

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.test.JBossTestCase (src)
delegate, deploymentException, log
 
Constructor Summary
FormAuthUnitTestCase(java.lang.String name)
           
 
Method Summary
 void doSecureGet(java.lang.String path)
           
 void doSecureGetWithLogin(java.lang.String path)
           
static Test suite()
          One time setup for all SingleSignOnUnitTestCase unit tests
 void testFlushOnSessionInvalidation()
          Test that the war which uses in the jboss-web.xml does not have any jaas security domain cache entries after the web session has been invalidated.
 void testFormAuth()
          Test form authentication of a secured servlet
 void testFormAuthSubject()
          Test form authentication of a secured servlet and validate that there is a SecurityAssociation setting Subject.
 void testPostDataFormAuth()
          Test that a post from an unsecured form to a secured servlet does not loose its data during the redirct to the form login.
 
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

FormAuthUnitTestCase

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

testFormAuth

public void testFormAuth()
                  throws java.lang.Exception
Test form authentication of a secured servlet

Throws:
java.lang.Exception

testFormAuthSubject

public void testFormAuthSubject()
                         throws java.lang.Exception
Test form authentication of a secured servlet and validate that there is a SecurityAssociation setting Subject.

Throws:
java.lang.Exception

testPostDataFormAuth

public void testPostDataFormAuth()
                          throws java.lang.Exception
Test that a post from an unsecured form to a secured servlet does not loose its data during the redirct to the form login.

Throws:
java.lang.Exception

testFlushOnSessionInvalidation

public void testFlushOnSessionInvalidation()
                                    throws java.lang.Exception
Test that the war which uses in the jboss-web.xml does not have any jaas security domain cache entries after the web session has been invalidated.

Throws:
java.lang.Exception

doSecureGetWithLogin

public void doSecureGetWithLogin(java.lang.String path)
                          throws java.lang.Exception
Throws:
java.lang.Exception

doSecureGet

public void doSecureGet(java.lang.String path)
                 throws java.lang.Exception
Throws:
java.lang.Exception

suite

public static Test suite()
                  throws java.lang.Exception
One time setup for all SingleSignOnUnitTestCase unit tests

Throws:
java.lang.Exception