cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bimargul...@apache.org
Subject svn commit: r661674 - /cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/support/JaxWsServiceFactoryBeanTest.java
Date Fri, 30 May 2008 12:07:42 GMT
Author: bimargulies
Date: Fri May 30 05:07:42 2008
New Revision: 661674

URL: http://svn.apache.org/viewvc?rev=661674&view=rev
Log:
Add test case for missing element to the JAX-WS test.

Modified:
    cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/support/JaxWsServiceFactoryBeanTest.java

Modified: cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/support/JaxWsServiceFactoryBeanTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/support/JaxWsServiceFactoryBeanTest.java?rev=661674&r1=661673&r2=661674&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/support/JaxWsServiceFactoryBeanTest.java
(original)
+++ cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/support/JaxWsServiceFactoryBeanTest.java
Fri May 30 05:07:42 2008
@@ -42,20 +42,46 @@
 import org.apache.cxf.endpoint.Endpoint;
 import org.apache.cxf.jaxws.AbstractJaxWsTest;
 import org.apache.cxf.mtom_xop.TestMtomImpl;
+import org.apache.cxf.no_body_parts.NoBodyPartsImpl;
 import org.apache.cxf.service.Service;
 import org.apache.cxf.service.factory.ReflectionServiceFactoryBean;
 import org.apache.cxf.service.invoker.BeanInvoker;
 import org.apache.cxf.service.model.FaultInfo;
 import org.apache.cxf.service.model.InterfaceInfo;
+import org.apache.cxf.service.model.MessageInfo;
 import org.apache.cxf.service.model.MessagePartInfo;
 import org.apache.cxf.service.model.OperationInfo;
 import org.apache.cxf.service.model.SchemaInfo;
 import org.apache.cxf.service.model.ServiceInfo;
 import org.apache.cxf.wsdl11.ServiceWSDLBuilder;
 import org.apache.hello_world_soap_http.GreeterImpl;
+import org.apache.ws.commons.schema.XmlSchemaElement;
 import org.junit.Test;
 
 public class JaxWsServiceFactoryBeanTest extends AbstractJaxWsTest {
+    
+    @org.junit.Ignore
+    @Test
+    public void testDocLiteralPartWithType() throws Exception {
+        ReflectionServiceFactoryBean serviceFactory = new JaxWsServiceFactoryBean();
+        serviceFactory.setBus(getBus());
+        serviceFactory.setServiceClass(NoBodyPartsImpl.class);
+        Service service = serviceFactory.create();
+        ServiceInfo serviceInfo = 
+            service.getServiceInfos().get(0);
+        QName qname = new QName("urn:org:apache:cxf:no_body_parts/wsdl",
+                                "operation1");
+        MessageInfo mi = serviceInfo.getMessage(qname);
+        qname = new QName("urn:org:apache:cxf:no_body_parts/wsdl",
+            "mimeAttachment");
+        MessagePartInfo mpi = mi.getMessagePart(qname);
+        QName elementQName = mpi.getElementQName();
+        XmlSchemaElement element = 
+            serviceInfo.getXmlSchemaCollection().getElementByQName(elementQName);
+        assertNotNull(element);
+
+    }
+
 
     @Test
     public void testEndpoint() throws Exception {



Mime
View raw message