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 2013/10/21 16:05:19 UTC
svn commit: r1534168 -
/cxf/trunk/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/x509/X509TokenTest.java
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);
}