Author: ay
Date: Mon Mar 4 16:49:31 2013
New Revision: 1452390
URL: http://svn.apache.org/r1452390
Log:
Merged revisions 1452387 via svn merge from
https://svn.apache.org/repos/asf/cxf/trunk
........
r1452387 | ay | 2013-03-04 17:47:40 +0100 (Mon, 04 Mar 2013) | 1 line
add wsdl test with local soap-binding decls
........
Added:
cxf/branches/2.7.x-fixes/rt/core/src/test/resources/org/apache/cxf/wsdl11/hello_world_local_nsdecl.wsdl
- copied unchanged from r1452387,
cxf/trunk/rt/core/src/test/resources/org/apache/cxf/wsdl11/hello_world_local_nsdecl.wsdl
Modified:
cxf/branches/2.7.x-fixes/ (props changed)
cxf/branches/2.7.x-fixes/rt/core/src/test/java/org/apache/cxf/wsdl11/WSDLManagerImplTest.java
Propchange: cxf/branches/2.7.x-fixes/
('svn:mergeinfo' removed)
Propchange: cxf/branches/2.7.x-fixes/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.
Modified:
cxf/branches/2.7.x-fixes/rt/core/src/test/java/org/apache/cxf/wsdl11/WSDLManagerImplTest.java
URL:
http://svn.apache.org/viewvc/cxf/branches/2.7.x-fixes/rt/core/src/test/java/org/apache/cxf/wsdl11/WSDLManagerImplTest.java?rev=1452390&r1=1452389&r2=1452390&view=diff
==============================================================================
---
cxf/branches/2.7.x-fixes/rt/core/src/test/java/org/apache/cxf/wsdl11/WSDLManagerImplTest.java
(original)
+++
cxf/branches/2.7.x-fixes/rt/core/src/test/java/org/apache/cxf/wsdl11/WSDLManagerImplTest.java
Mon Mar 4 16:49:31 2013
@@ -96,4 +96,14 @@ public class WSDLManagerImplTest extends
assertNotNull(part);
assertEquals(new QName("http://apache.org/hello_world/types",
"sayHi"), part.getElementName());
}
+
+ @Test
+ public void testLocalNamespacedWSDL() throws Exception {
+ String wsdlUrl =
getClass().getResource("hello_world_local_nsdecl.wsdl").toString();
+
+ WSDLManagerImpl builder = new WSDLManagerImpl();
+ Definition def = builder.getDefinition(wsdlUrl);
+ java.io.ByteArrayOutputStream bos = new
java.io.ByteArrayOutputStream();
+ builder.getWSDLFactory().newWSDLWriter().writeWSDL(def, bos);
+ }
}