1 22 package org.jboss.test.webservice.jbws124; 23 24 import junit.framework.Test; 25 import org.jboss.test.webservice.WebserviceTestBase; 26 27 import javax.naming.InitialContext ; 28 import javax.xml.rpc.Service ; 29 30 38 public class JBWS124TestCase extends WebserviceTestBase 39 { 40 42 public JBWS124TestCase(String name) 43 { 44 super(name); 45 } 46 47 48 public static Test suite() throws Exception 49 { 50 return getDeploySetup(JBWS124TestCase.class, "ws4ee-jbws124.war, ws4ee-jbws124-client.jar"); 51 } 52 53 56 public void testEndpoint() throws Exception 57 { 58 InitialContext iniCtx = getClientContext(); 59 Service service = (Service )iniCtx.lookup("java:comp/env/service/HelloService"); 60 Hello hello = (Hello)service.getPort(Hello.class); 61 62 String in0 = "Kermit"; 63 String retObj = hello.hello(in0); 64 assertEquals(in0, retObj); 65 } 66 } 67 | Popular Tags |