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