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