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