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/10/28 10:03:12 UTC

[2/2] git commit: Test doesnt work on IBM jdks

Test doesnt work on IBM jdks


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

Branch: refs/heads/camel-2.12.x
Commit: 43c0d79ea0ba2bcab83a306de9267f8af17c0eab
Parents: 5275d26
Author: Claus Ibsen <da...@apache.org>
Authored: Mon Oct 28 09:54:12 2013 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Mon Oct 28 09:54:26 2013 +0100

----------------------------------------------------------------------
 .../camel/component/xmlsecurity/ECDSASignatureTest.java   | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/43c0d79e/components/camel-xmlsecurity/src/test/java/org/apache/camel/component/xmlsecurity/ECDSASignatureTest.java
----------------------------------------------------------------------
diff --git a/components/camel-xmlsecurity/src/test/java/org/apache/camel/component/xmlsecurity/ECDSASignatureTest.java b/components/camel-xmlsecurity/src/test/java/org/apache/camel/component/xmlsecurity/ECDSASignatureTest.java
index e904b30..03c86e9 100644
--- a/components/camel-xmlsecurity/src/test/java/org/apache/camel/component/xmlsecurity/ECDSASignatureTest.java
+++ b/components/camel-xmlsecurity/src/test/java/org/apache/camel/component/xmlsecurity/ECDSASignatureTest.java
@@ -74,10 +74,12 @@ public class ECDSASignatureTest extends CamelTestSupport {
     protected JndiRegistry createRegistry() throws Exception {
         JndiRegistry registry = super.createRegistry();
 
-        registry.bind("accessor", getKeyAccessor());
-        registry.bind("selector", 
-                      KeySelector.singletonKeySelector(getCertificateFromKeyStore().getPublicKey()));
-        registry.bind("uriDereferencer", getSameDocumentUriDereferencer());
+        // This test fails with the IBM JDK
+        if (!ibmJDK) {
+            registry.bind("accessor", getKeyAccessor());
+            registry.bind("selector", KeySelector.singletonKeySelector(getCertificateFromKeyStore().getPublicKey()));
+            registry.bind("uriDereferencer", getSameDocumentUriDereferencer());
+        }
 
         return registry;
     }