1 22 package org.jboss.test.hotdeploy; 23 24 import javax.management.MBeanServerConnection ; 25 import javax.management.ObjectName ; 26 27 import junit.framework.Test; 28 29 import org.jboss.test.JBossTestCase; 30 31 32 38 public class HotdeploySarTestCase 39 extends JBossTestCase 40 { 41 org.jboss.logging.Logger log = getLog(); 42 43 static boolean deployed = false; 44 static int test = 0; 45 46 public HotdeploySarTestCase(String name) 47 { 48 49 super(name); 50 51 } 52 53 public void testAspect() throws Exception 54 { 55 MBeanServerConnection server = getServer(); 56 ObjectName testerName = new ObjectName ("jboss.aop:service=HotdeployTest"); 57 Object [] params = {}; 58 String [] sig = {}; 59 server.invoke(testerName, "testMethod", params, sig); 60 } 61 62 public static Test suite() throws Exception 63 { 64 return getDeploySetup(HotdeploySarTestCase.class, "hotdeploy.sar"); 65 } 66 67 } 68 | Popular Tags |