1 22 package org.jboss.test.webservice.marshalltest; 23 24 import javax.naming.InitialContext ; 25 import javax.xml.rpc.Service ; 26 27 import junit.framework.Test; 28 29 35 public class MarshallRpcEncodedTestCase extends MarshallTestBase 36 { 37 private static MarshallEndpoint rpcencPort; 38 39 42 public MarshallRpcEncodedTestCase(String name) 43 { 44 super(name); 45 } 46 47 50 public static Test suite() throws Exception 51 { 52 return getDeploySetup(MarshallRpcEncodedTestCase.class, "ws4ee-marshall-rpcenc.ear"); 53 } 54 55 protected void setUp() throws Exception 56 { 57 super.setUp(); 58 if (rpcencPort == null) 59 { 60 InitialContext iniCtx = getClientContext(); 61 Service service = (Service )iniCtx.lookup("java:comp/env/service/MarshallRpcEncService"); 62 rpcencPort = (MarshallEndpoint)service.getPort(MarshallEndpoint.class); 63 } 64 port = rpcencPort; 65 } 66 } 67 | Popular Tags |