1 22 package org.jboss.test.web.test; 23 24 import org.jboss.test.JBossTestCase; 25 import org.jboss.test.JBossTestSetup; 26 import junit.framework.Test; 27 import junit.framework.TestSuite; 28 29 34 public class SingleSignOnUnitTestCase extends JBossTestCase 35 { 36 private String baseURLNoAuth = "http://" + getServerHost() + ":" + Integer.getInteger("web.port", 8080); 37 38 public SingleSignOnUnitTestCase(String name) 39 { 40 super(name); 41 } 42 43 47 public void testFormAuthSingleSignOn() throws Exception 48 { 49 log.info("+++ testFormAuthSingleSignOn"); 50 51 SSOBaseCase.executeFormAuthSingleSignOnTest(baseURLNoAuth, baseURLNoAuth, getLog()); 52 53 } 54 55 57 public static Test suite() throws Exception 58 { 59 TestSuite suite = new TestSuite(); 60 suite.addTest(new TestSuite(SingleSignOnUnitTestCase.class)); 61 62 Test wrapper = new JBossTestSetup(suite) 64 { 65 protected void setUp() throws Exception 66 { 67 super.setUp(); 68 deploy("web-sso.ear"); 70 flushAuthCache(); 72 } 73 protected void tearDown() throws Exception 74 { 75 undeploy("web-sso.ear"); 76 super.tearDown(); 77 } 78 }; 79 return wrapper; 80 } 81 } 82 | Popular Tags |