You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by co...@apache.org on 2018/04/09 11:42:16 UTC

[cxf] 01/02: Adding assertions to MTOMSecurityTest

This is an automated email from the ASF dual-hosted git repository.

coheigea pushed a commit to branch 3.1.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git

commit 508d754608b3c94ad73ddb3f06092792b0ca3bcd
Author: Colm O hEigeartaigh <co...@apache.org>
AuthorDate: Mon Apr 9 12:14:23 2018 +0100

    Adding assertions to MTOMSecurityTest
    
    (cherry picked from commit 61392a9defa5f1d7efccacee02a817e255971114)
    
    # Conflicts:
    #	systests/ws-security/src/test/java/org/apache/cxf/systest/ws/mtom/MTOMSecurityTest.java
---
 .../org/apache/cxf/systest/ws/mtom/MTOMSecurityTest.java   | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/mtom/MTOMSecurityTest.java b/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/mtom/MTOMSecurityTest.java
index 9095ca9..68536b8 100644
--- a/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/mtom/MTOMSecurityTest.java
+++ b/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/mtom/MTOMSecurityTest.java
@@ -84,8 +84,8 @@ public class MTOMSecurityTest extends AbstractBusClientServerTestBase {
         DataSource source = new FileDataSource(new File("src/test/resources/java.jpg"));
         DoubleIt4 doubleIt = new DoubleIt4();
         doubleIt.setNumberToDouble(25);
-        port.doubleIt4(25, new DataHandler(source));
-        
+        assertEquals(50, port.doubleIt4(25, new DataHandler(source)));
+
         ((java.io.Closeable)port).close();
         bus.shutdown(true);
     }
@@ -111,8 +111,8 @@ public class MTOMSecurityTest extends AbstractBusClientServerTestBase {
         DataSource source = new FileDataSource(new File("src/test/resources/java.jpg"));
         DoubleIt4 doubleIt = new DoubleIt4();
         doubleIt.setNumberToDouble(25);
-        port.doubleIt4(25, new DataHandler(source));
-        
+        assertEquals(50, port.doubleIt4(25, new DataHandler(source)));
+
         ((java.io.Closeable)port).close();
         bus.shutdown(true);
     }
@@ -214,10 +214,10 @@ public class MTOMSecurityTest extends AbstractBusClientServerTestBase {
         DataSource source = new FileDataSource(new File("src/test/resources/java.jpg"));
         DoubleIt4 doubleIt = new DoubleIt4();
         doubleIt.setNumberToDouble(25);
-        port.doubleIt4(25, new DataHandler(source));
-        
+        assertEquals(50, port.doubleIt4(25, new DataHandler(source)));
+
         ((java.io.Closeable)port).close();
         bus.shutdown(true);
     }
-    
+
 }

-- 
To stop receiving notification emails like this one, please contact
coheigea@apache.org.