1 22 package org.jboss.ejb3.test.tableperinheritance.unit; 23 24 import org.jboss.ejb3.test.tableperinheritance.EntityTest; 25 import org.jboss.test.JBossTestCase; 26 import junit.framework.Test; 27 28 34 35 public class EntityUnitTestCase 36 extends JBossTestCase 37 { 38 org.jboss.logging.Logger log = getLog(); 39 40 static boolean deployed = false; 41 static int test = 0; 42 43 public EntityUnitTestCase(String name) 44 { 45 46 super(name); 47 48 } 49 50 public void test1() throws Exception 51 { 52 EntityTest test = (EntityTest) this.getInitialContext().lookup("EntityTestBean/remote"); 53 long[] ids = test.createBeans(); 54 test.test1(); 55 test.test2(); 56 test.test3(); 57 test.test4(ids); 58 } 59 60 public static Test suite() throws Exception 61 { 62 return getDeploySetup(EntityUnitTestCase.class, "table-per-class-inheritance-test.jar"); 63 } 64 65 } 66 | Popular Tags |