1 22 package org.jboss.test.webservice.jbws463; 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 39 public class JBWS463TestCase extends WebserviceTestBase 40 { 41 private static TestSEI port; 42 43 public JBWS463TestCase(String name) 44 { 45 super(name); 46 } 47 48 public static Test suite() throws Exception 49 { 50 return getDeploySetup(JBWS463TestCase.class, "ws4ee-jbws463.war, ws4ee-jbws463-client.jar"); 51 } 52 53 protected 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 = (TestSEI)service.getPort(TestSEI.class); 61 } 62 } 63 64 public void testInteger() throws Exception 65 { 66 String retObj = port.doStuff(new Integer (1)); 67 assertEquals("doStuff(Integer 1)", retObj); 68 } 69 70 71 public void testDouble() throws Exception 72 { 73 String retObj = port.doStuff(new Double (1)); 74 assertEquals("doStuff(Double 1.0)", retObj); 75 } 76 } 77 | Popular Tags |