camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r788792 - /camel/trunk/camel-core/src/test/java/org/apache/camel/processor/TraceInterceptorTest.java
Date Fri, 26 Jun 2009 17:57:53 GMT
Author: davsclaus
Date: Fri Jun 26 17:57:53 2009
New Revision: 788792

URL: http://svn.apache.org/viewvc?rev=788792&view=rev
Log:
CAMEL-1759: Cleanup of the code in TraceInterceptor and added code comments for the next poor
soul reading it.

Modified:
    camel/trunk/camel-core/src/test/java/org/apache/camel/processor/TraceInterceptorTest.java

Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/processor/TraceInterceptorTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/TraceInterceptorTest.java?rev=788792&r1=788791&r2=788792&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/processor/TraceInterceptorTest.java
(original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/processor/TraceInterceptorTest.java
Fri Jun 26 17:57:53 2009
@@ -20,7 +20,6 @@
 import org.apache.camel.Exchange;
 import org.apache.camel.Processor;
 import org.apache.camel.builder.RouteBuilder;
-import org.apache.camel.processor.interceptor.Tracer;
 
 /**
  * @version $Revision$
@@ -36,9 +35,8 @@
     protected RouteBuilder createRouteBuilder() throws Exception {
         return new RouteBuilder() {
             public void configure() throws Exception {
-                // add tracer as an interceptor so it will log the exchange executions at
runtime
-                // this can aid us to understand/see how the exchanges is routed etc.
-                getContext().addInterceptStrategy(new Tracer());
+                // enable tracing
+                getContext().setTracing(true);
 
                 from("direct:start").
                         process(new Processor() {



Mime
View raw message