You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ha...@apache.org on 2012/02/16 22:21:59 UTC

svn commit: r1245180 - in /camel/branches/camel-2.9.x/components: camel-crypto/src/main/java/org/apache/camel/component/crypto/DigitalSignatureConstants.java camel-jms/src/test/java/org/apache/camel/component/jms/JmsRequestReplyCorrelationTest.java

Author: hadrian
Date: Thu Feb 16 21:21:59 2012
New Revision: 1245180

URL: http://svn.apache.org/viewvc?rev=1245180&view=rev
Log:
Checkstyle fixes

Modified:
    camel/branches/camel-2.9.x/components/camel-crypto/src/main/java/org/apache/camel/component/crypto/DigitalSignatureConstants.java
    camel/branches/camel-2.9.x/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsRequestReplyCorrelationTest.java

Modified: camel/branches/camel-2.9.x/components/camel-crypto/src/main/java/org/apache/camel/component/crypto/DigitalSignatureConstants.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.9.x/components/camel-crypto/src/main/java/org/apache/camel/component/crypto/DigitalSignatureConstants.java?rev=1245180&r1=1245179&r2=1245180&view=diff
==============================================================================
--- camel/branches/camel-2.9.x/components/camel-crypto/src/main/java/org/apache/camel/component/crypto/DigitalSignatureConstants.java (original)
+++ camel/branches/camel-2.9.x/components/camel-crypto/src/main/java/org/apache/camel/component/crypto/DigitalSignatureConstants.java Thu Feb 16 21:21:59 2012
@@ -27,4 +27,8 @@ public final class DigitalSignatureConst
     public static final String SIGNATURE = "CamelDigitalSignature";
     public static final String KEYSTORE_ALIAS = "CamelSignatureKeyStoreAlias";
     public static final String KEYSTORE_PASSWORD = "CamelSignatureKeyStorePassword";
+
+    private DigitalSignatureConstants() {
+        // Utility class
+    }
 }

Modified: camel/branches/camel-2.9.x/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsRequestReplyCorrelationTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.9.x/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsRequestReplyCorrelationTest.java?rev=1245180&r1=1245179&r2=1245180&view=diff
==============================================================================
--- camel/branches/camel-2.9.x/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsRequestReplyCorrelationTest.java (original)
+++ camel/branches/camel-2.9.x/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsRequestReplyCorrelationTest.java Thu Feb 16 21:21:59 2012
@@ -100,28 +100,28 @@ public class JmsRequestReplyCorrelationT
      * to contain the correlation id dynamically generated on send.
      */
      
-     @Test
-     public void testRequestReplyCorrelationWithEmptyString() throws Exception {
-         MockEndpoint result = getMockEndpoint("mock:result");
-         result.expectedMessageCount(1);
-
-         Exchange out = template.send("jms:queue:hello", ExchangePattern.InOut, new Processor() {
-             public void process(Exchange exchange) throws Exception {
-                 Message in = exchange.getIn();
-                 in.setBody("Hello World");
-                 in.setHeader("JMSCorrelationID", "");
-             }
-         });
+    @Test
+    public void testRequestReplyCorrelationWithEmptyString() throws Exception {
+        MockEndpoint result = getMockEndpoint("mock:result");
+        result.expectedMessageCount(1);
+
+        Exchange out = template.send("jms:queue:hello", ExchangePattern.InOut, new Processor() {
+            public void process(Exchange exchange) throws Exception {
+                Message in = exchange.getIn();
+                in.setBody("Hello World");
+                in.setHeader("JMSCorrelationID", "");
+            }
+        });
 
-         assertNotNull(out);
-         result.assertIsSatisfied();
+        assertNotNull(out);
+        result.assertIsSatisfied();
      
-         assertEquals(REPLY_BODY, out.getOut().getBody(String.class));
-         String correlationId = out.getOut().getHeader("JMSCorrelationID", String.class);
-         assertNotNull(correlationId);
-         // In ActiveMQ messageIds start with ID: (currently) so the ID should not be generated from AMQ
-         assertFalse("CorrelationID should NOT start with ID, was: " + correlationId, correlationId.startsWith("ID:"));
-     }
+        assertEquals(REPLY_BODY, out.getOut().getBody(String.class));
+        String correlationId = out.getOut().getHeader("JMSCorrelationID", String.class);
+        assertNotNull(correlationId);
+        // In ActiveMQ messageIds start with ID: (currently) so the ID should not be generated from AMQ
+        assertFalse("CorrelationID should NOT start with ID, was: " + correlationId, correlationId.startsWith("ID:"));
+    }
     
     
     /**