1 22 package org.jboss.test.jacc.test; 23 24 import javax.management.ObjectName ; 25 26 import junit.framework.Test; 27 import junit.framework.TestSuite; 28 29 import org.jboss.test.JBossTestSetup; 30 31 37 public class WebIntegrationUnitTestCase 38 extends org.jboss.test.web.test.WebIntegrationUnitTestCase 39 { 40 public WebIntegrationUnitTestCase(String name) 41 { 42 super(name); 43 } 44 45 50 public void testUnsecureRunAsServletWithPrincipalName() throws Exception 51 { 52 } 53 54 59 public void testUnsecureRunAsServletWithPrincipalNameAndRoles() throws Exception 60 { 61 } 62 63 66 public static Test suite() throws Exception 67 { 68 TestSuite suite = new TestSuite(); 69 suite.addTest(new TestSuite(WebIntegrationUnitTestCase.class)); 70 71 Test wrapper = new JBossTestSetup(suite) 73 { 74 protected void setUp() throws Exception 75 { 76 super.setUp(); 77 redeploy("jbosstest-web.ear"); 78 flushAuthCache("jbosstest-web"); 79 } 80 protected void tearDown() throws Exception 81 { 82 undeploy("jbosstest-web.ear"); 83 super.tearDown(); 84 85 getServer().invoke 87 ( 88 new ObjectName ("jboss.mq.destination:service=Queue,name=testQueue"), 89 "removeAllMessages", 90 new Object [0], 91 new String [0] 92 ); 93 94 } 95 }; 96 return wrapper; 97 } 98 } 99 | Popular Tags |