1 22 package org.jboss.test.webservice.jbws383; 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 JBWS383TestCase extends WebserviceTestBase 39 { 40 42 public JBWS383TestCase(String name) 43 { 44 super(name); 45 } 46 47 48 public static Test suite() throws Exception 49 { 50 return getDeploySetup(JBWS383TestCase.class, "ws4ee-jbws383.war, ws4ee-jbws383-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 JavaType in = new JavaType(new Double []{new Double (1), new Double (2), new Double (3)}); 60 JavaType retObj = port.doStuff(in); 61 assertEquals(in, retObj); 62 } 63 64 } 65 | Popular Tags |