1 22 package org.jboss.ejb3.test.regression.ejbthree315.unit; 23 24 import javax.naming.InitialContext ; 25 import org.jboss.ejb3.test.regression.ejbthree315.ServiceRemote; 26 import org.jboss.ejb3.test.regression.ejbthree315.StatefulRemote; 27 import org.jboss.ejb3.test.regression.ejbthree315.StatelessRemote; 28 import org.jboss.test.JBossTestCase; 29 import junit.framework.Test; 30 31 36 public class UnderscoreInMethodNameTestCase 37 extends JBossTestCase 38 { 39 org.jboss.logging.Logger log = getLog(); 40 41 public UnderscoreInMethodNameTestCase(String name) 42 { 43 super(name); 44 } 45 46 public void testUnderscoreMethods() throws Exception 47 { 48 InitialContext ctx = new InitialContext (); 49 StatefulRemote stateful = (StatefulRemote)ctx.lookup("StatefulBean/remote"); 50 stateful._method(); 51 52 StatelessRemote stateless = (StatelessRemote)ctx.lookup("StatelessBean/remote"); 53 stateless._method(); 54 55 ServiceRemote service = (ServiceRemote)ctx.lookup("ServiceBean/remote"); 56 service._method(); 57 } 58 59 public static Test suite() throws Exception 60 { 61 return getDeploySetup(UnderscoreInMethodNameTestCase.class, "regression-ejbthree315.jar"); 62 } 63 64 } | Popular Tags |