1 22 package org.jboss.ejb3.test.regression.ejbthree454.unit; 23 24 import junit.framework.Test; 25 import org.jboss.ejb3.test.regression.ejbthree454.AEJB; 26 import org.jboss.ejb3.test.regression.ejbthree454.BEJB; 27 import org.jboss.test.JBossTestCase; 28 29 35 36 public class RemoteUnitTestCase 37 extends JBossTestCase 38 { 39 org.jboss.logging.Logger log = getLog(); 40 41 static boolean deployed = false; 42 static int test = 0; 43 44 public RemoteUnitTestCase(String name) 45 { 46 47 super(name); 48 49 } 50 51 public void testScopedClassLoaders() throws Exception 52 { 53 AEJB remote = (AEJB) getInitialContext().lookup("ejbthree454-a/AEJBBean/remote"); 54 remote.doit(); 55 BEJB bremote = (BEJB) getInitialContext().lookup("ejbthree454-b/BEJBBean/remote"); 56 bremote.doit(); 57 } 58 59 public static Test suite() throws Exception 60 { 61 return getDeploySetup(RemoteUnitTestCase.class, "ejbthree454-a.ear, ejbthree454-b.ear"); 62 } 63 64 } 65 | Popular Tags |