1 22 package org.jboss.test.webservice.jbws68; 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 44 public class JBWS68TestCase extends WebserviceTestBase 45 { 46 48 public JBWS68TestCase(String name) 49 { 50 super(name); 51 } 52 53 54 public static Test suite() throws Exception 55 { 56 return getDeploySetup(JBWS68TestCase.class, "ws4ee-jbws68.war, ws4ee-jbws68-client.jar"); 57 } 58 59 62 public void testEndpoint() throws Exception 63 { 64 InitialContext iniCtx = getClientContext(); 65 Service service = (Service )iniCtx.lookup("java:comp/env/service/HelloService"); 66 Hello hello = (Hello)service.getPort(Hello.class); 67 68 UserType in0 = new UserType("Kermit"); 69 UserType retObj = hello.echoUserType(in0); 70 assertEquals(in0, retObj); 71 } 72 } 73 | Popular Tags |