1 22 package org.jboss.test.webservice.jbws217; 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 37 public class JBWS217TestCase extends WebserviceTestBase 38 { 39 41 public JBWS217TestCase(String name) 42 { 43 super(name); 44 } 45 46 47 public static Test suite() throws Exception 48 { 49 return getDeploySetup(JBWS217TestCase.class, "ws4ee-jbws217.war, ws4ee-jbws217-client.jar"); 50 } 51 52 55 public void testEndpoint() throws Exception 56 { 57 InitialContext iniCtx = getClientContext(); 58 Service service = (Service )iniCtx.lookup("java:comp/env/service/HelloService"); 59 Hello hello = (Hello)service.getPort(Hello.class); 60 61 int in0 = 100; 62 int retObj = hello.hello(in0); 63 assertEquals(in0, retObj); 64 } 65 } 66 | Popular Tags |