You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ws.apache.org by co...@apache.org on 2012/11/21 10:52:13 UTC

svn commit: r1412032 - /webservices/wss4j/branches/1_6_x-fixes/src/test/java/org/apache/ws/security/message/EncryptionGCMTest.java

Author: coheigea
Date: Wed Nov 21 09:52:13 2012
New Revision: 1412032

URL: http://svn.apache.org/viewvc?rev=1412032&view=rev
Log:
Don't run GCM tests with IBM JDK 7

Modified:
    webservices/wss4j/branches/1_6_x-fixes/src/test/java/org/apache/ws/security/message/EncryptionGCMTest.java

Modified: webservices/wss4j/branches/1_6_x-fixes/src/test/java/org/apache/ws/security/message/EncryptionGCMTest.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/branches/1_6_x-fixes/src/test/java/org/apache/ws/security/message/EncryptionGCMTest.java?rev=1412032&r1=1412031&r2=1412032&view=diff
==============================================================================
--- webservices/wss4j/branches/1_6_x-fixes/src/test/java/org/apache/ws/security/message/EncryptionGCMTest.java (original)
+++ webservices/wss4j/branches/1_6_x-fixes/src/test/java/org/apache/ws/security/message/EncryptionGCMTest.java Wed Nov 21 09:52:13 2012
@@ -67,6 +67,14 @@ public class EncryptionGCMTest extends o
     
     @org.junit.Test
     public void testAES128GCM() throws Exception {
+        //
+        // This test fails with the IBM JDK 7
+        //
+        if ("IBM Corporation".equals(System.getProperty("java.vendor"))
+            && System.getProperty("java.version") != null
+            &&  System.getProperty("java.version").startsWith("1.7")) {
+            return;
+        }
         WSSecEncrypt builder = new WSSecEncrypt();
         builder.setUserInfo("wss40");
         builder.setKeyIdentifierType(WSConstants.BST_DIRECT_REFERENCE);
@@ -88,6 +96,14 @@ public class EncryptionGCMTest extends o
     
     @org.junit.Test
     public void testAES256GCM() throws Exception {
+        //
+        // This test fails with the IBM JDK 7
+        //
+        if ("IBM Corporation".equals(System.getProperty("java.vendor"))
+            && System.getProperty("java.version") != null
+            &&  System.getProperty("java.version").startsWith("1.7")) {
+            return;
+        }
         WSSecEncrypt builder = new WSSecEncrypt();
         builder.setUserInfo("wss40");
         builder.setKeyIdentifierType(WSConstants.BST_DIRECT_REFERENCE);