1 22 package org.jboss.ejb3.test.jca.inflowmdb.unit; 23 24 import org.jboss.ejb3.test.jca.inflow.TestResourceAdapter; 25 import org.jboss.ejb3.test.jca.inflow.TestResourceAdapterInflowResults; 26 import org.jboss.test.JBossTestCase; 27 import junit.framework.Test; 28 29 34 public class DeploymentDescriptorInflowUnitTestCase extends JBossTestCase 35 { 36 37 public DeploymentDescriptorInflowUnitTestCase (String name) 38 { 39 super(name); 40 } 41 42 public void testInflow() throws Throwable 43 { 44 TestResourceAdapterInflowResults results = (TestResourceAdapterInflowResults) getServer().invoke 45 ( 46 TestResourceAdapter.mbean, 47 "testInflow", 48 new Object [0], 49 new String [0] 50 ); 51 52 results.check(); 53 } 54 55 public static Test suite() throws Exception 56 { 57 Test t1 = getDeploySetup(DeploymentDescriptorInflowUnitTestCase.class, "jcainflowmdb_dd.jar"); 58 Test t2 = getDeploySetup(t1, "jcainflow.rar"); 59 return t2; 60 } 61 62 66 } 67 | Popular Tags |