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 MarshallRpcLiteralTestCase extends MarshallTestBase 36 { 37 private static MarshallEndpoint rpclitPort; 38 39 public MarshallRpcLiteralTestCase(String name) 40 { 41 super(name); 42 } 43 44 public static Test suite() throws Exception 45 { 46 return getDeploySetup(MarshallRpcLiteralTestCase.class, "ws4ee-marshall-rpclit.ear"); 47 } 48 49 protected void setUp() throws Exception 50 { 51 super.setUp(); 52 if (rpclitPort == null) 53 { 54 InitialContext iniCtx = getClientContext(); 55 Service service = (Service )iniCtx.lookup("java:comp/env/service/MarshallRpcLitService"); 56 rpclitPort = (MarshallEndpoint)service.getPort(MarshallEndpoint.class); 57 } 58 port = rpclitPort; 59 } 60 } 61 | Popular Tags |