1 22 package org.jboss.test.webservice.jbws168; 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 38 public class JBWS168TestCase extends WebserviceTestBase { 39 42 public JBWS168TestCase(String name) { 43 super(name); 44 } 45 46 47 public static Test suite() throws Exception { 48 return getDeploySetup(JBWS168TestCase.class, "ws4ee-jbws168.war, ws4ee-jbws168-client.jar"); 49 } 50 51 public void testEmptyProperty() throws Exception { 52 53 InitialContext iniCtx = getClientContext(); 54 Service service = (Service ) iniCtx.lookup("java:comp/env/service/HelloService"); 55 Hello hello = (Hello) service.getPort(Hello.class); 56 57 UserType ut = new UserType("A", null, null); 58 UserType retObj = hello.hello(ut); 59 assertEquals(ut, retObj); 60 } 61 } 62 | Popular Tags |