1 22 package org.jboss.test.webservice.jbws456; 23 24 import javax.naming.InitialContext ; 25 import javax.xml.rpc.Service ; 26 27 import junit.framework.Test; 28 29 import org.jboss.test.webservice.WebserviceTestBase; 30 31 39 public class JBWS456TestCase extends WebserviceTestBase 40 { 41 43 public JBWS456TestCase(String name) 44 { 45 super(name); 46 } 47 48 49 public static Test suite() throws Exception 50 { 51 return getDeploySetup(JBWS456TestCase.class, "ws4ee-jbws456.war, ws4ee-jbws456-client.jar"); 52 } 53 54 public void testEndpoint() throws Exception 55 { 56 InitialContext iniCtx = getClientContext(); 57 Service service = (Service )iniCtx.lookup("java:comp/env/service/TestService"); 58 TestSEI port = (TestSEI)service.getPort(TestSEI.class); 59 60 JavaType in = new JavaType("A more appropiate test string"); 61 JavaType retObj = port.doStuff(in); 62 assertEquals(in.getValue() + " - Processed", TestHandler.getReturnParam()); 63 } 64 65 } 66 | Popular Tags |