cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1534168 - /cxf/trunk/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/x509/X509TokenTest.java
Date Mon, 21 Oct 2013 14:05:19 GMT
Author: coheigea
Date: Mon Oct 21 14:05:19 2013
New Revision: 1534168

URL: http://svn.apache.org/r1534168
Log:
Updating test

Modified:
    cxf/trunk/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/x509/X509TokenTest.java

Modified: cxf/trunk/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/x509/X509TokenTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/x509/X509TokenTest.java?rev=1534168&r1=1534167&r2=1534168&view=diff
==============================================================================
--- cxf/trunk/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/x509/X509TokenTest.java
(original)
+++ cxf/trunk/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/x509/X509TokenTest.java
Mon Oct 21 14:05:19 2013
@@ -154,7 +154,7 @@ public class X509TokenTest extends Abstr
         // DOM
         x509Port.doubleIt(25);
         
-        // TODO Streaming
+        // TODO WSS-468 Streaming
         // SecurityTestUtil.enableStreaming(x509Port);
         // x509Port.doubleIt(25);
         
@@ -182,7 +182,7 @@ public class X509TokenTest extends Abstr
         // DOM
         x509Port.doubleIt(25);
         
-        // TODO WSS-469 Streaming
+        // TODO WSS-468 Streaming
         // SecurityTestUtil.enableStreaming(x509Port);
         // x509Port.doubleIt(25);
         
@@ -1095,6 +1095,12 @@ public class X509TokenTest extends Abstr
         QName portQName = new QName(NAMESPACE, "DoubleItTransportNegativeEndorsingPort");
         DoubleItPortType port = service.getPort(portQName, DoubleItPortType.class);
         updateAddressPort(port, PORT2);
+        
+        // DOM
+        port.doubleIt(25);
+        
+        // Streaming
+        SecurityTestUtil.enableStreaming(port);
         port.doubleIt(25);
         
         // This should fail, as the client is not endorsing the token
@@ -1102,6 +1108,7 @@ public class X509TokenTest extends Abstr
         port = service.getPort(portQName, DoubleItPortType.class);
         updateAddressPort(port, PORT2);
         
+        // DOM
         try {
             port.doubleIt(25);
             fail("Failure expected on not endorsing the token");
@@ -1110,6 +1117,15 @@ public class X509TokenTest extends Abstr
             assertTrue(ex.getMessage().contains(error));
         }
         
+        // Streaming
+        try {
+            SecurityTestUtil.enableStreaming(port);
+            port.doubleIt(25);
+            fail("Failure expected on not endorsing the token");
+        } catch (javax.xml.ws.soap.SOAPFaultException ex) {
+            // expected
+        }
+        
         ((java.io.Closeable)port).close();
         bus.shutdown(true);
     }



Mime
View raw message