1 22 package org.jboss.test.webservice.jbws414; 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 JBWS414TestCase extends WebserviceTestBase 39 { 40 42 public JBWS414TestCase(String name) 43 { 44 super(name); 45 } 46 47 48 public static Test suite() throws Exception 49 { 50 return getDeploySetup(JBWS414TestCase.class, "ws4ee-jbws414.war, ws4ee-jbws414-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 TestSEI port = (TestSEI)service.getPort(TestSEI.class); 58 59 St st = new St(new RefType("A more appropiate test string")); 60 St retObj = port.doStuff(st); 61 assertEquals(st, retObj); 62 } 63 64 } 65 | Popular Tags |