1 22 package org.jboss.test.webservice.jbws718; 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 38 public class JBWS718TestCase extends WebserviceTestBase 39 { 40 private static ReportingServiceSoap port; 41 42 public JBWS718TestCase(String name) 43 { 44 super(name); 45 } 46 47 48 public static Test suite() throws Exception 49 { 50 return getDeploySetup(JBWS718TestCase.class, "ws4ee-jbws718.war, ws4ee-jbws718-client.jar"); 51 } 52 53 public void setUp() throws Exception 54 { 55 super.setUp(); 56 if (port == null) 57 { 58 InitialContext iniCtx = getClientContext(); 59 Service service = (Service )iniCtx.lookup("java:comp/env/service/TestService"); 60 port = (ReportingServiceSoap)service.getPort(ReportingServiceSoap.class); 61 } 62 } 63 64 public void testEndpoint() throws Exception 65 { 66 assertEquals("some link", port.getReportLink("some link")); 67 } 68 } 69 | Popular Tags |