camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1102190 - /camel/trunk/components/camel-test/src/main/java/org/apache/camel/test/junit4/CamelTestSupport.java
Date Thu, 12 May 2011 07:43:15 GMT
Author: davsclaus
Date: Thu May 12 07:43:15 2011
New Revision: 1102190

URL: http://svn.apache.org/viewvc?rev=1102190&view=rev
Log:
CAMEL-3960: Added note about using the per class can cause side effects so use it with care.

Modified:
    camel/trunk/components/camel-test/src/main/java/org/apache/camel/test/junit4/CamelTestSupport.java

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=1102190&r1=1102189&r2=1102190&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
Thu May 12 07:43:15 2011
@@ -83,6 +83,9 @@ public abstract class CamelTestSupport e
      * <p/>
      * By default it will be setup/teardown per test (per test method). If you want to re-use
      * {@link CamelContext} between test methods you can override this method and return
<tt>true</tt>
+     * <p/>
+     * <b>Important:</b> Use this with care as the {@link CamelContext} will
carry over state
+     * from previous tests, such as endpoints, components etc. So you cannot use this in
all your tests.
      *
      * @return <tt>true</tt> per class, <tt>false</tt> per test.
      */



Mime
View raw message