cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1450975 - /cxf/trunk/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/security/WSSecurityClientTest.java
Date Wed, 27 Feb 2013 21:32:34 GMT
Author: coheigea
Date: Wed Feb 27 21:32:34 2013
New Revision: 1450975

URL: http://svn.apache.org/r1450975
Log:
Fixing test with new WSS4J SNAPSHOT

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

Modified: cxf/trunk/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/security/WSSecurityClientTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/security/WSSecurityClientTest.java?rev=1450975&r1=1450974&r2=1450975&view=diff
==============================================================================
--- cxf/trunk/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/security/WSSecurityClientTest.java
(original)
+++ cxf/trunk/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/security/WSSecurityClientTest.java
Wed Feb 27 21:32:34 2013
@@ -203,17 +203,14 @@ public class WSSecurityClientTest extend
         java.io.InputStream is = null;
         String result = null;
         //
-        // Check to ensure that a well-formed request will pass
+        // Old Created Date should result in a Fault
         //
         dispatcher = createUsernameTokenDispatcher();
         is = getClass().getResourceAsStream(
             "test-data/UsernameTokenRequest.xml"
         );
         result = source2String(dispatcher.invoke(new StreamSource(is)));
-        assertTrue(result.indexOf("Bonjour") != -1);
-        //make sure the principal was set
-        assertNotNull(GreeterImpl.getUser());
-        assertEquals("alice", GreeterImpl.getUser().getName());
+        assertTrue(result.indexOf("Fault") != -1);
         
         //
         // Sending no security headers should result in a Fault



Mime
View raw message