1 7 package org.jboss.test.jbossnet.servicename; 8 9 import junit.framework.Test; 10 import org.jboss.test.JBossTestCase; 11 12 18 public class ServiceNameTestCase extends JBossTestCase 19 { 20 public ServiceNameTestCase(String name) 21 { 22 super(name); 23 } 24 25 public void testHelloString() throws Exception 26 { 27 HelloBeanServiceLocator locator = new HelloBeanServiceLocator(); 28 HelloBean port = locator.getHello(); 29 Greeting ret = port.sayHello(); 30 assertEquals("Hello !!!", ret.getGreeting()); 31 } 32 33 34 public static Test suite() throws Exception 35 { 36 return getDeploySetup(ServiceNameTestCase.class, "jbossnet-servicename.ear"); 37 } 38 } 39 | Popular Tags |