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.TestResourceAdapterWorkManagerResults; 28 29 35 public class WorkManagerUnitTestCase extends JBossTestCase 36 { 37 38 public WorkManagerUnitTestCase (String name) 39 { 40 super(name); 41 } 42 43 public static Test suite() throws Exception 44 { 45 Test t1 = getDeploySetup(WorkManagerUnitTestCase.class, "jcainflow.rar"); 46 return t1; 47 } 48 49 public void testWorkManager() throws Throwable 50 { 51 TestResourceAdapterWorkManagerResults results = (TestResourceAdapterWorkManagerResults) getServer().invoke 52 ( 53 TestResourceAdapter.mbean, 54 "testWorkManager", 55 new Object [0], 56 new String [0] 57 ); 58 59 results.check(); 60 } 61 } 62 | Popular Tags |