cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r794780 - /cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/provider/ProviderTest.java
Date Thu, 16 Jul 2009 19:02:45 GMT
Author: dkulp
Date: Thu Jul 16 19:02:44 2009
New Revision: 794780

URL: http://svn.apache.org/viewvc?rev=794780&view=rev
Log:
[CXF-1852] Add a testcase to prove this is really resolved

Modified:
    cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/provider/ProviderTest.java

Modified: cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/provider/ProviderTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/provider/ProviderTest.java?rev=794780&r1=794779&r2=794780&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/provider/ProviderTest.java
(original)
+++ cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/provider/ProviderTest.java
Thu Jul 16 19:02:44 2009
@@ -41,4 +41,24 @@
         addNamespace("j", "http://service.jaxws.cxf.apache.org/");
         assertValid("//s:Body/j:sayHi", response);
     }
+    
+    @Test
+    public void testCXF1852() throws Exception {
+        EndpointImpl ep = new EndpointImpl(getBus(), new PayloadProvider2(), (String) null);
+        ep.publish("http://localhost:9001/Provider2");
+        
+        Node response = invoke("http://localhost:9001/Provider2",
+                               LocalTransportFactory.TRANSPORT_ID, 
+                               "/org/apache/cxf/jaxws/sayHi.xml");
+
+        assertNotNull(response);
+        assertNoFault(response);
+
+        addNamespace("j", "http://service.jaxws.cxf.apache.org/");
+        assertValid("//s:Body/j:sayHi", response);        
+    }
+    
+    public static class PayloadProvider2 extends PayloadProvider {
+        
+    }
 }



Mime
View raw message