Author: ningjiang Date: Tue Mar 1 09:53:15 2011 New Revision: 1075755 URL: http://svn.apache.org/viewvc?rev=1075755&view=rev Log: CAMEL-3733 Added comments on isUseRouteBuilder method of CamelContextTestSupport
Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/ContextTestSupport.java camel/trunk/components/camel-test/src/main/java/org/apache/camel/test/CamelTestSupport.java camel/trunk/components/camel-test/src/main/java/org/apache/camel/test/junit4/CamelTestSupport.java Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/ContextTestSupport.java URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/ContextTestSupport.java?rev=1075755&r1=1075754&r2=1075755&view=diff ============================================================================== --- camel/trunk/camel-core/src/test/java/org/apache/camel/ContextTestSupport.java (original) +++ camel/trunk/camel-core/src/test/java/org/apache/camel/ContextTestSupport.java Tue Mar 1 09:53:15 2011 @@ -43,7 +43,13 @@ public abstract class ContextTestSupport protected volatile NotifyBuilder oneExchangeDone; private boolean useRouteBuilder = true; private Service camelContextService; - + + /** + * Use the RouteBuilder or not + * @return + * If the return value is true, the camel context will be started in the setup method. + * If the return value is false, the camel context will not be started in the setup method. + */ public boolean isUseRouteBuilder() { return useRouteBuilder; } @@ -98,11 +104,12 @@ public abstract class ContextTestSupport for (RouteBuilder builder : builders) { log.debug("Using created route builder: " + builder); context.addRoutes(builder); + startCamelContext(); } - startCamelContext(); } else { log.debug("isUseRouteBuilder() is false"); } + } @Override Modified: camel/trunk/components/camel-test/src/main/java/org/apache/camel/test/CamelTestSupport.java URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-test/src/main/java/org/apache/camel/test/CamelTestSupport.java?rev=1075755&r1=1075754&r2=1075755&view=diff ============================================================================== --- camel/trunk/components/camel-test/src/main/java/org/apache/camel/test/CamelTestSupport.java (original) +++ camel/trunk/components/camel-test/src/main/java/org/apache/camel/test/CamelTestSupport.java Tue Mar 1 09:53:15 2011 @@ -61,6 +61,12 @@ public abstract class CamelTestSupport e private Service camelContextService; private final DebugBreakpoint breakpoint = new DebugBreakpoint(); + /** + * Use the RouteBuilder or not + * @return + * If the return value is true, the camel context will be started in the setup method. + * If the return value is false, the camel context will not be started in the setup method. + */ public boolean isUseRouteBuilder() { return useRouteBuilder; } Modified: camel/trunk/components/camel-test/src/main/java/org/apache/camel/test/junit4/CamelTestSupport.java URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-test/src/main/java/org/apache/camel/test/junit4/CamelTestSupport.java?rev=1075755&r1=1075754&r2=1075755&view=diff ============================================================================== --- camel/trunk/components/camel-test/src/main/java/org/apache/camel/test/junit4/CamelTestSupport.java (original) +++ camel/trunk/components/camel-test/src/main/java/org/apache/camel/test/junit4/CamelTestSupport.java Tue Mar 1 09:53:15 2011 @@ -63,6 +63,12 @@ public abstract class CamelTestSupport e private Service camelContextService; private final DebugBreakpoint breakpoint = new DebugBreakpoint(); + /** + * Use the RouteBuilder or not + * @return + * If the return value is true, the camel context will be started in the setup method. + * If the return value is false, the camel context will not be started in the setup method. + */ public boolean isUseRouteBuilder() { return useRouteBuilder; }