Author: ningjiang
Date: Sat Oct 17 08:27:09 2009
New Revision: 826192
URL: http://svn.apache.org/viewvc?rev=826192&view=rev
Log:
Fixed the CS errors
Modified:
camel/trunk/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsDestinationResolverTest.java
camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/issues/MisspelledRouteRefTest.java
Modified:
camel/trunk/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsDestinationResolverTest.java
URL:
http://svn.apache.org/viewvc/camel/trunk/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsDestinationResolverTest.java?rev=826192&r1=826191&r2=826192&view=diff
==============================================================================
---
camel/trunk/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsDestinationResolverTest.java
(original)
+++
camel/trunk/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsDestinationResolverTest.java
Sat Oct 17 08:27:09 2009
@@ -30,10 +30,12 @@
* @version $Revision: 786464 $
*/
public class JmsDestinationResolverTest extends CamelTestSupport {
+
protected MockEndpoint resultEndpoint;
protected String componentName = "activemq";
protected String startEndpointUri;
-
+ private ClassPathXmlApplicationContext applicationContext;
+
@Test
public void testSendAndReceiveMessage() throws Exception {
assertSendAndReceiveBody("Hello there!");
@@ -62,8 +64,6 @@
resultEndpoint = (MockEndpoint) context.getEndpoint("mock:result");
}
-
- private ClassPathXmlApplicationContext applicationContext;
@Override
protected CamelContext createCamelContext() throws Exception {
Modified:
camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/issues/MisspelledRouteRefTest.java
URL:
http://svn.apache.org/viewvc/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/issues/MisspelledRouteRefTest.java?rev=826192&r1=826191&r2=826192&view=diff
==============================================================================
---
camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/issues/MisspelledRouteRefTest.java
(original)
+++
camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/issues/MisspelledRouteRefTest.java
Sat Oct 17 08:27:09 2009
@@ -16,10 +16,10 @@
*/
package org.apache.camel.spring.issues;
+import junit.framework.TestCase;
import org.apache.camel.spring.Main;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import junit.framework.TestCase;
import org.junit.Test;
/**
@@ -39,7 +39,9 @@
} catch (Exception e) {
//expected but want to see what it looks like...
LOG.debug("Exception message : " + e.getMessage());
- assertEquals("Error creating bean with name 'camel': Invocation of
init method failed; nested exception is org.apache.camel.CamelException: Cannot
find any routes with this RouteBuilder reference: RouteBuilderRef[xxxroute]",
e.getMessage());
+ assertEquals("Error creating bean with name 'camel': Invocation of
init method failed;"
+ + " nested exception is
org.apache.camel.CamelException: "
+ + "Cannot find any routes with this RouteBuilder
reference: RouteBuilderRef[xxxroute]", e.getMessage());
}
}
}