camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [09/11] git commit: Polished
Date Wed, 11 Sep 2013 11:20:50 GMT
Polished


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/c3afdd20
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/c3afdd20
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/c3afdd20

Branch: refs/heads/camel-2.12.x
Commit: c3afdd2099b7bfc45c38b0e88985a3326779b8c5
Parents: 779995a
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Wed Sep 11 13:09:07 2013 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Wed Sep 11 13:16:58 2013 +0200

----------------------------------------------------------------------
 .../apache/camel/component/crypto/ECDSASignatureTest.java    | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/c3afdd20/components/camel-crypto/src/test/java/org/apache/camel/component/crypto/ECDSASignatureTest.java
----------------------------------------------------------------------
diff --git a/components/camel-crypto/src/test/java/org/apache/camel/component/crypto/ECDSASignatureTest.java
b/components/camel-crypto/src/test/java/org/apache/camel/component/crypto/ECDSASignatureTest.java
index 85f5981..4f8760f 100644
--- a/components/camel-crypto/src/test/java/org/apache/camel/component/crypto/ECDSASignatureTest.java
+++ b/components/camel-crypto/src/test/java/org/apache/camel/component/crypto/ECDSASignatureTest.java
@@ -42,10 +42,8 @@ public class ECDSASignatureTest extends CamelTestSupport {
     private boolean ibmJDK;
 
     public ECDSASignatureTest() throws Exception {
-        //
         // BouncyCastle is required for ECDSA support for JDK 1.6
-        //
-        if (System.getProperty("java.version").startsWith("1.6")
+        if (isJava16()
             && Security.getProvider("BC") == null) {
             Constructor<?> cons = null;
             Class<?> c = Class.forName("org.bouncycastle.jce.provider.BouncyCastleProvider");
@@ -55,10 +53,8 @@ public class ECDSASignatureTest extends CamelTestSupport {
             Security.insertProviderAt(provider, 2);
         }
         
-        //
         // This test fails with the IBM JDK
-        //
-        if ("IBM Corporation".equals(System.getProperty("java.vendor"))) {
+        if (isJavaVendor("IBM")) {
             ibmJDK = true;
         }
     }


Mime
View raw message