1 22 package org.jboss.test.webservice.jbws706; 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 JBWS706TestCase extends WebserviceTestBase 39 { 40 42 public JBWS706TestCase(String name) 43 { 44 super(name); 45 } 46 47 48 public static Test suite() throws Exception 49 { 50 return getDeploySetup(JBWS706TestCase.class, "ws4ee-jbws706.war, ws4ee-jbws706-client.jar"); 51 } 52 53 public void testEndpoint() throws Exception 54 { 55 InitialContext iniCtx = getClientContext(); 56 Service service = (Service )iniCtx.lookup("java:comp/env/service/TestService"); 57 DemoServicePortType hello = (DemoServicePortType)service.getPort(DemoServicePortType.class); 58 59 Descr retObj = hello.processDescr("descr"); 60 assertEquals("descr", retObj.getDescription()); 61 } 62 } 63 | Popular Tags |