You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2013/09/11 13:20:47 UTC

[06/11] git commit: Polished

Polished


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

Branch: refs/heads/master
Commit: 16f82817ce0328eb316b7afec72c5b0c4a42d404
Parents: 7c8df23
Author: Claus Ibsen <da...@apache.org>
Authored: Wed Sep 11 13:09:07 2013 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Wed Sep 11 13:09:07 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/16f82817/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;
         }
     }