1 22 package org.jboss.test.jmx.test; 23 24 import org.jboss.test.JBossTestCase; 25 import org.jboss.test.jmx.ha.HAServiceRemote; 26 27 import junit.framework.Test; 28 29 35 public class HAInvokerUnitTestCase 36 extends JBossTestCase 37 { 38 public HAInvokerUnitTestCase(String name) 39 { 40 super(name); 41 } 42 43 public static Test suite() 44 throws Exception 45 { 46 return getDeploySetup(HAInvokerUnitTestCase.class, "ha-invoker.sar"); 47 } 48 49 public void testHello() 50 throws Exception 51 { 52 HAServiceRemote remote = (HAServiceRemote) getInitialContext().lookup("jmx/HAService"); 53 assertEquals("Hello", remote.hello()); 54 } 55 56 } 57 | Popular Tags |