cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1412045 - /cxf/trunk/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/gcm/GCMTest.java
Date Wed, 21 Nov 2012 10:31:18 GMT
Author: coheigea
Date: Wed Nov 21 10:31:17 2012
New Revision: 1412045

URL: http://svn.apache.org/viewvc?rev=1412045&view=rev
Log:
Disable GCM tests on IBM JDK 7

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

Modified: cxf/trunk/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/gcm/GCMTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/gcm/GCMTest.java?rev=1412045&r1=1412044&r2=1412045&view=diff
==============================================================================
--- cxf/trunk/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/gcm/GCMTest.java
(original)
+++ cxf/trunk/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/gcm/GCMTest.java
Wed Nov 21 10:31:17 2012
@@ -62,6 +62,15 @@ public class GCMTest extends AbstractBus
     
     @org.junit.Test
     public void testAESGCM128() 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;
+        }
+
         SpringBusFactory bf = new SpringBusFactory();
         URL busFile = GCMTest.class.getResource("client/client.xml");
 
@@ -86,6 +95,15 @@ public class GCMTest extends AbstractBus
         if (!unrestrictedPoliciesInstalled) {
             return;
         }
+        
+        //
+        // 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;
+        }
 
         SpringBusFactory bf = new SpringBusFactory();
         URL busFile = GCMTest.class.getResource("client/client.xml");
@@ -111,6 +129,15 @@ public class GCMTest extends AbstractBus
         if (!unrestrictedPoliciesInstalled) {
             return;
         }
+        
+        //
+        // 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;
+        }
 
         SpringBusFactory bf = new SpringBusFactory();
         URL busFile = GCMTest.class.getResource("client/client.xml");



Mime
View raw message