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/11/22 13:21:05 UTC

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

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);
     }