cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1544509 - /cxf/trunk/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/parts/StaxPartsTest.java
Date Fri, 22 Nov 2013 12:21:05 GMT
Author: coheigea
Date: Fri Nov 22 12:21:04 2013
New Revision: 1544509

URL: http://svn.apache.org/r1544509
Log:
Fixing tests related to WSS-482

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

Modified: cxf/trunk/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/parts/StaxPartsTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/parts/StaxPartsTest.java?rev=1544509&r1=1544508&r2=1544509&view=diff
==============================================================================
--- cxf/trunk/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/parts/StaxPartsTest.java
(original)
+++ cxf/trunk/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/parts/StaxPartsTest.java
Fri Nov 22 12:21:04 2013
@@ -275,12 +275,12 @@ public class StaxPartsTest extends Abstr
         updateAddressPort(port, PORT);
         
         // DOM
-        /* TODO See WSS-482
+        /* TODO See WSS-482 - Remove comment when we move off WSS4J RC
         try {
             port.doubleIt(25);
             fail("Failure expected on a header which isn't signed");
         } catch (javax.xml.ws.soap.SOAPFaultException ex) {
-            String error = "SignedElements";
+            String error = "To must be signed";
             assertTrue(ex.getMessage().contains(error));
         }
         
@@ -290,7 +290,7 @@ public class StaxPartsTest extends Abstr
             port.doubleIt(25);
             fail("Failure expected on a header which isn't signed");
         } catch (javax.xml.ws.soap.SOAPFaultException ex) {
-            // String error = "SignedElements";
+            // String error = "To must be signed";
             // assertTrue(ex.getMessage().contains(error));
         }
         */
@@ -407,14 +407,13 @@ public class StaxPartsTest extends Abstr
         updateAddressPort(port, PORT);
         
         /*
-         * TODO See WSS-482
+          TODO See WSS-482 - Remove comment when we move off WSS4J RC
         // DOM
         try {
             port.doubleIt(25);
             fail("Failure expected on a header which isn't encrypted");
         } catch (javax.xml.ws.soap.SOAPFaultException ex) {
-            System.out.println("ERR2: " + ex.getMessage());
-            String error = "EncryptedElements";
+            String error = "To must be encrypted";
             assertTrue(ex.getMessage().contains(error));
         }
         
@@ -424,11 +423,10 @@ public class StaxPartsTest extends Abstr
             port.doubleIt(25);
             fail("Failure expected on a header which isn't encrypted");
         } catch (javax.xml.ws.soap.SOAPFaultException ex) {
-            // String error = "EncryptedElements";
+            // String error = "To must be encrypted";
             // assertTrue(ex.getMessage().contains(error));
         }
         */
-        
         ((java.io.Closeable)port).close();
         bus.shutdown(true);
     }



Mime
View raw message