cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r774058 [2/2] - in /cxf/trunk: rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/ rt/bindings/xml/src/main/java/org/apache/cxf/binding/xml/ rt/core/src/main/java/org/apache/cxf/attachment/ rt/core/src/main/java/org/apache/cxf/bindi...
Date Tue, 12 May 2009 20:08:52 GMT
Modified: cxf/trunk/systests/src/test/java/org/apache/cxf/systest/provider/ProviderRPCClientServerTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/provider/ProviderRPCClientServerTest.java?rev=774058&r1=774057&r2=774058&view=diff
==============================================================================
--- cxf/trunk/systests/src/test/java/org/apache/cxf/systest/provider/ProviderRPCClientServerTest.java
(original)
+++ cxf/trunk/systests/src/test/java/org/apache/cxf/systest/provider/ProviderRPCClientServerTest.java
Tue May 12 20:08:51 2009
@@ -112,7 +112,17 @@
         SOAPServiceRPCLit service = new SOAPServiceRPCLit(wsdl, serviceName);
         assertNotNull(service);
 
-        doGreeterRPCLit(service, portName, 2, false);
+        
+        String response1 = new String("TestGreetMeResponseServerLogicalHandlerServerSOAPHandler");
+        String response2 = new String("TestSayHiResponse");
+        GreeterRPCLit greeter = service.getPort(portName, GreeterRPCLit.class);
+        String greeting = greeter.greetMe("Milestone-0");
+        assertNotNull("no response received from service", greeting);
+        assertEquals(response1, greeting);
+
+        String reply = greeter.sayHi();
+        assertNotNull("no response received from service", reply);
+        assertEquals(response2, reply);
     }
 
     @Test

Modified: cxf/trunk/systests/src/test/java/org/apache/cxf/systest/provider/datasource/DataSourceProviderTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/provider/datasource/DataSourceProviderTest.java?rev=774058&r1=774057&r2=774058&view=diff
==============================================================================
--- cxf/trunk/systests/src/test/java/org/apache/cxf/systest/provider/datasource/DataSourceProviderTest.java
(original)
+++ cxf/trunk/systests/src/test/java/org/apache/cxf/systest/provider/datasource/DataSourceProviderTest.java
Tue May 12 20:08:51 2009
@@ -88,9 +88,8 @@
         OutputStream out = conn.getOutputStream();
         IOUtils.copy(in, out);
         out.close();
-
-        MimeMultipart mm = readAttachmentParts(conn.getRequestProperty("Content-Type"),
-                                                        conn.getInputStream());
+        MimeMultipart mm = readAttachmentParts(conn.getContentType(),
+                                               conn.getInputStream());
 
         assertEquals("incorrect number of parts received by server", 3, mm.getCount());
 



Mime
View raw message