1 22 package org.jboss.test.webservice.jbws71; 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 JBWS71TestCase extends WebserviceTestBase 39 { 40 42 public JBWS71TestCase(String name) 43 { 44 super(name); 45 } 46 47 48 public static Test suite() throws Exception 49 { 50 return getDeploySetup(JBWS71TestCase.class, "ws4ee-jbws71.war, ws4ee-jbws71-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 UserType in0 = new UserType("Kermit"); 63 UserType retObj = hello.echoUserType(in0); 64 assertEquals(in0, retObj); 65 } 66 } 67 | Popular Tags |