package org.jboss.test.webservice.jbws124;
import junit.framework.Test;
import org.jboss.test.webservice.WebserviceTestBase;
import javax.naming.InitialContext;
import javax.xml.rpc.Service;
public class JBWS124TestCase extends WebserviceTestBase
{
public JBWS124TestCase(String name)
{
super(name);
}
public static Test suite() throws Exception
{
return getDeploySetup(JBWS124TestCase.class, "ws4ee-jbws124.war, ws4ee-jbws124-client.jar");
}
public void testEndpoint() throws Exception
{
InitialContext iniCtx = getClientContext();
Service service = (Service)iniCtx.lookup("java:comp/env/service/HelloService");
Hello hello = (Hello)service.getPort(Hello.class);
String in0 = "Kermit";
String retObj = hello.hello(in0);
assertEquals(in0, retObj);
}
}