1 22 package org.jboss.ejb3.test.circulardependency.unit; 23 24 import javax.ejb.EJBAccessException ; 25 26 import org.jboss.ejb3.test.circulardependency.StatelessRemote; 27 28 import org.jboss.logging.Logger; 29 30 import org.jboss.test.JBossTestCase; 31 import junit.framework.Test; 32 33 37 public class IgnoreDependencyTestCase extends JBossTestCase 38 { 39 private static final Logger log = Logger.getLogger(IgnoreDependencyTestCase.class); 40 41 public IgnoreDependencyTestCase(String name) 42 { 43 super(name); 44 } 45 46 public void testCircular() throws Exception 47 { 48 StatelessRemote stateless = (StatelessRemote) getInitialContext().lookup("Stateless1"); 49 assertNotNull(stateless); 50 51 assertEquals(123, stateless.method(123)); 52 } 53 54 public static Test suite() throws Exception 55 { 56 return getDeploySetup(IgnoreDependencyTestCase.class, "circulardependency-test.jar"); 57 } 58 } | Popular Tags |