1 22 package org.jboss.test.web.test; 23 24 import javax.management.ObjectName ; 25 26 import junit.framework.Test; 27 import junit.framework.TestSuite; 28 29 import org.jboss.security.config.ApplicationPolicy; 30 import org.jboss.test.JBossTestSetup; 31 32 34 39 public class JASPIFormAuthUnitTestCase extends FormAuthUnitTestCase 40 { 41 public JASPIFormAuthUnitTestCase(String name) 42 { 43 super(name); 44 } 45 46 public void testFlushOnSessionInvalidation() throws Exception 47 { 48 } 50 51 public static Test suite() throws Exception 52 { 53 TestSuite suite = new TestSuite(); 54 suite.addTest(new TestSuite(JASPIFormAuthUnitTestCase.class)); 55 56 Test wrapper = new JBossTestSetup(suite) 58 { 59 protected void setUp() throws Exception 60 { 61 super.setUp(); 62 deploy("jaspi-form-auth.ear"); 63 flushAuthCache(); 65 String oname = "jboss.web:host="+getServerHost()+",name=ExtendedJASPIFormAuthenticator,path=/form-auth,type=Valve"; 67 ObjectName formAuth = new ObjectName (oname); 68 assertNotNull("Authenticator for FORM on host=localhost exists?", getServer().getObjectInstance(formAuth)); 70 } 71 protected void tearDown() throws Exception 72 { 73 undeploy("jaspi-form-auth.ear"); 74 super.tearDown(); 75 } 76 }; 77 return wrapper; 78 } 79 } 80 | Popular Tags |