camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r936618 - /camel/trunk/components/camel-crypto/src/test/java/org/apache/camel/component/crypto/SignatureTests.java
Date Thu, 22 Apr 2010 05:34:57 GMT
Author: davsclaus
Date: Thu Apr 22 05:34:57 2010
New Revision: 936618

URL: http://svn.apache.org/viewvc?rev=936618&view=rev
Log:
Fixing test on other boxes.

Modified:
    camel/trunk/components/camel-crypto/src/test/java/org/apache/camel/component/crypto/SignatureTests.java

Modified: camel/trunk/components/camel-crypto/src/test/java/org/apache/camel/component/crypto/SignatureTests.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-crypto/src/test/java/org/apache/camel/component/crypto/SignatureTests.java?rev=936618&r1=936617&r2=936618&view=diff
==============================================================================
--- camel/trunk/components/camel-crypto/src/test/java/org/apache/camel/component/crypto/SignatureTests.java
(original)
+++ camel/trunk/components/camel-crypto/src/test/java/org/apache/camel/component/crypto/SignatureTests.java
Thu Apr 22 05:34:57 2010
@@ -48,7 +48,6 @@ import static org.apache.camel.component
 public class SignatureTests extends ContextTestSupport {
 
     private KeyPair keyPair;
-
     private String payload = "Dear Alice, Rest assured it's me, signed Bob";
 
     @Override
@@ -194,7 +193,6 @@ public class SignatureTests extends Cont
     }
 
     public void testProvideAliasInHeader() throws Exception {
-
         MockEndpoint mock = setupMock();
         // START SNIPPET: alias-send
         Exchange unsigned = getMandatoryEndpoint("direct:alias-sign").createExchange();
@@ -214,7 +212,6 @@ public class SignatureTests extends Cont
     }
 
     public void testProvideKeysInHeader() throws Exception {
-
         MockEndpoint mock = setupMock();
         Exchange unsigned = getMandatoryEndpoint("direct:headerkey-sign").createExchange();
         unsigned.getIn().setBody(payload);
@@ -235,7 +232,6 @@ public class SignatureTests extends Cont
     }
 
     public void testProvideCertificateInHeader() throws Exception {
-
         MockEndpoint mock = setupMock();
         Exchange unsigned = getMandatoryEndpoint("direct:signature-property").createExchange();
         unsigned.getIn().setBody(payload);
@@ -258,8 +254,7 @@ public class SignatureTests extends Cont
     }
 
     private void verify(MockEndpoint mock) throws InterruptedException {
-        mock.await(4, TimeUnit.SECONDS);
-        mock.assertIsSatisfied();
+        MockEndpoint.assertIsSatisfied(10, TimeUnit.SECONDS, mock);
     }
 
     private MockEndpoint setupMock() {
@@ -270,7 +265,6 @@ public class SignatureTests extends Cont
 
     @SuppressWarnings("unchecked")
     public Exchange doTestSignatureRoute(RouteBuilder builder) throws Exception {
-
         return doSignatureRouteTest(builder, null, Collections.EMPTY_MAP);
     }
 
@@ -327,6 +321,6 @@ public class SignatureTests extends Cont
 
     public PrivateKey getKeyFromKeystore() throws Exception {
         return (PrivateKey)loadKeystore().getKey("bob", "letmein".toCharArray());
-
     }
+
 }



Mime
View raw message