1 8 9 package org.jboss.ejb3.test.cache.unit; 10 11 13 14 import junit.framework.Test; 15 import org.jboss.jmx.adaptor.rmi.RMIAdaptor; 16 import org.jboss.test.JBossTestCase; 17 18 import javax.management.MBeanServerConnection ; 19 import javax.management.ObjectName ; 20 21 27 28 public class CacheUnitTestCase 29 extends JBossTestCase 30 { 31 org.apache.log4j.Category log = getLog(); 32 33 static boolean deployed = false; 34 static int test = 0; 35 36 public CacheUnitTestCase(String name) 37 { 38 39 super(name); 40 41 } 42 43 public void testSimple() throws Exception 44 { 45 MBeanServerConnection server = getServer(); 46 ObjectName testerName = new ObjectName ("jboss.ejb3:service=Tester,test=cache"); 47 Object [] params = {}; 48 String [] sig = {}; 49 server.invoke(testerName, "test", params, sig); 50 } 51 52 public static Test suite() throws Exception 53 { 54 return getDeploySetup(CacheUnitTestCase.class, "testejb3-cache-service.xml, cache-test.sar"); 55 } 56 57 } 58 | Popular Tags |