1 22 package org.jboss.ejb3.test.unauthenticatedprincipal.unit; 23 24 import org.jboss.ejb3.test.unauthenticatedprincipal.StatelessRemote; 25 import org.jboss.test.JBossTestCase; 26 import junit.framework.Test; 27 28 32 public class UnauthenticatedPrincipalTestCase extends JBossTestCase 33 { 34 35 public UnauthenticatedPrincipalTestCase(String name) 36 { 37 super(name); 38 } 39 40 public void testUnauthenticatedPrincipal() throws Exception 41 { 42 StatelessRemote test = (StatelessRemote)getInitialContext().lookup("StatelessBean/remote"); 43 assertNotNull(test); 44 45 test.testAccess(); 46 } 47 48 49 public static Test suite() throws Exception 50 { 51 return getDeploySetup(UnauthenticatedPrincipalTestCase.class, "unauthenticatedprincipal.jar"); 52 } 53 54 } 55 | Popular Tags |