package org.jboss.test.jbossnet.servicename;
import junit.framework.Test;
import org.jboss.test.JBossTestCase;
public class ServiceNameTestCase extends JBossTestCase
{
public ServiceNameTestCase(String name)
{
super(name);
}
public void testHelloString() throws Exception
{
HelloBeanServiceLocator locator = new HelloBeanServiceLocator();
HelloBean port = locator.getHello();
Greeting ret = port.sayHello();
assertEquals("Hello !!!", ret.getGreeting());
}
public static Test suite() throws Exception
{
return getDeploySetup(ServiceNameTestCase.class, "jbossnet-servicename.ear");
}
}