cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1353599 - /cxf/branches/2.6.x-fixes/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/security/WSSecurityClientTest.java
Date Mon, 25 Jun 2012 15:40:58 GMT
Author: coheigea
Date: Mon Jun 25 15:40:57 2012
New Revision: 1353599

URL: http://svn.apache.org/viewvc?rev=1353599&view=rev
Log:
Merged revisions 1353597 via  git cherry-pick from
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1353597 | coheigea | 2012-06-25 16:38:29 +0100 (Mon, 25 Jun 2012) | 2 lines

  Added a test-case for passwordTypeStrict

........

Modified:
    cxf/branches/2.6.x-fixes/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/security/WSSecurityClientTest.java

Modified: cxf/branches/2.6.x-fixes/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/security/WSSecurityClientTest.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.6.x-fixes/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/security/WSSecurityClientTest.java?rev=1353599&r1=1353598&r2=1353599&view=diff
==============================================================================
--- cxf/branches/2.6.x-fixes/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/security/WSSecurityClientTest.java
(original)
+++ cxf/branches/2.6.x-fixes/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/security/WSSecurityClientTest.java
Mon Jun 25 15:40:57 2012
@@ -123,11 +123,21 @@ public class WSSecurityClientTest extend
         Map<String, Object> props = new HashMap<String, Object>();
         props.put("action", "UsernameToken");
         props.put("user", "alice");
+        props.put("passwordType", "PasswordText");
         WSS4JOutInterceptor wss4jOut = new WSS4JOutInterceptor(props);
         
         client.getOutInterceptors().add(wss4jOut);
 
         ((BindingProvider)greeter).getRequestContext().put("password", "password");
+        
+        try {
+            greeter.greetMe("CXF");
+            fail("should fail because of password text instead of digest");
+        } catch (Exception ex) {
+            //expected
+        }
+        
+        props.put("passwordType", "PasswordDigest");
         String s = greeter.greetMe("CXF");
         assertEquals("Hello CXF", s);
         



Mime
View raw message