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 2009/08/31 12:39:19 UTC
svn commit: r809531 -
/camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/jetty/JettyJmsTest.java
Author: davsclaus
Date: Mon Aug 31 10:39:19 2009
New Revision: 809531
URL: http://svn.apache.org/viewvc?rev=809531&view=rev
Log:
Fixed failing unit test.
Modified:
camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/jetty/JettyJmsTest.java
Modified: camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/jetty/JettyJmsTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/jetty/JettyJmsTest.java?rev=809531&r1=809530&r2=809531&view=diff
==============================================================================
--- camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/jetty/JettyJmsTest.java (original)
+++ camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/jetty/JettyJmsTest.java Mon Aug 31 10:39:19 2009
@@ -23,7 +23,7 @@
import org.apache.camel.Exchange;
import org.apache.camel.ProducerTemplate;
import org.apache.camel.component.mock.MockEndpoint;
-import org.apache.camel.processor.interceptor.Tracer;
+
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
@@ -31,7 +31,6 @@
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertTrue;
@ContextConfiguration
public class JettyJmsTest extends AbstractJUnit4SpringContextTests {
@@ -43,26 +42,9 @@
protected MockEndpoint resultEndpoint;
@Test
- public void testMocksAreValidWithTracerEnabled() throws Exception {
- assertNotNull(camelContext);
- Tracer tracer = Tracer.getTracer(camelContext);
- assertNotNull(tracer);
- assertTrue("The tracer should be enabled", tracer.isEnabled());
- validMockes();
- }
-
- @Test
- public void testMocksAreValidWithTracerDisabled() throws Exception {
- assertNotNull(camelContext);
- Tracer tracer = Tracer.getTracer(camelContext);
- assertNotNull(tracer);
- tracer.setEnabled(false);
- validMockes();
- }
-
- private void validMockes() throws Exception {
+ public void testMocksAreValid() throws Exception {
assertNotNull(resultEndpoint);
- resultEndpoint.reset();
+ resultEndpoint.reset();
ProducerTemplate template = camelContext.createProducerTemplate();
template.sendBodyAndHeader("jetty:http://localhost:9000/test", "Hello form Willem", "Operation", "greetMe");
@@ -81,4 +63,5 @@
assertEquals("Should get the header", "greetMe", exchange.getIn().getHeader("Operation"));
}
}
+
}