1 22 package org.jboss.test.webservice.jbws153; 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 37 public class JBWS153TestCase extends WebserviceTestBase 38 { 39 41 public JBWS153TestCase(String name) 42 { 43 super(name); 44 } 45 46 47 public static Test suite() throws Exception 48 { 49 return getDeploySetup(JBWS153TestCase.class, "ws4ee-jbws153.war, ws4ee-jbws153-client.jar"); 50 } 51 52 55 public void testEndpoint() throws Exception 56 { 57 InitialContext iniContext = getClientContext(); 58 Service service = (Service )iniContext.lookup("java:comp/env/service/OrderService"); 59 Order port = (Order)service.getPort(Order.class); 60 61 String getMessage = "Ferrari"; 62 String retStr = port.getOrder(getMessage); 63 assertEquals(getMessage, retStr); 64 } 65 } 66 | Popular Tags |