1 22 package org.jboss.ejb3.test.regressionHHH275.unit; 23 24 import org.jboss.ejb3.test.regressionHHH275.SearchDAORemote; 25 import org.jboss.test.JBossTestCase; 26 import junit.framework.Test; 27 28 35 36 public class HHH275UnitTestCase 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 HHH275UnitTestCase(String name) 45 { 46 47 super(name); 48 49 } 50 51 public void testOneToOne() throws Exception 52 { 53 SearchDAORemote remote = (SearchDAORemote) getInitialContext().lookup("SearchDAO/remote"); 54 remote.create(); 55 assertEquals(0, remote.find()); 56 } 57 58 public static Test suite() throws Exception 59 { 60 return getDeploySetup(HHH275UnitTestCase.class, "regressionHHH275-test.jar"); 61 } 62 63 } 64 | Popular Tags |