camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r815602 - in /websites/production/camel/content: book-cookbook.html book-in-one-page.html cache/main.pageCache spring-testing.html
Date Thu, 03 May 2012 15:21:33 GMT
Author: buildbot
Date: Thu May  3 15:21:32 2012
New Revision: 815602

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/book-cookbook.html
    websites/production/camel/content/book-in-one-page.html
    websites/production/camel/content/cache/main.pageCache
    websites/production/camel/content/spring-testing.html

Modified: websites/production/camel/content/book-cookbook.html
==============================================================================
--- websites/production/camel/content/book-cookbook.html (original)
+++ websites/production/camel/content/book-cookbook.html Thu May  3 15:21:32 2012
@@ -2132,7 +2132,8 @@ Override when using <a shape="rect" href
 <p>org.apache.camel.test.CamelSpringTestSupport, org.apache.camel.test.junit4.CamelSpringTestSupport, and org.apache.camel.testng.CamelSpringTestSupport&#160;extend their non-Spring aware counterparts (org.apache.camel.test.CamelTestSupport, org.apache.camel.test.junit4.CamelTestSupport, and org.apache.camel.testng.CamelTestSupport) and deliver integration with Spring into your test classes. &#160;Instead of&#160;instantiating&#160;the CamelContext and routes programmatically, these classes rely on a Spring context to wire the needed components together. &#160;If your test extends one of these classes, you must provide the Spring context by implementing the following method.</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java"><span class="code-keyword">protected</span> <span class="code-keyword">abstract</span> AbstractApplicationContext createApplicationContext();
+<pre class="code-java">
+<span class="code-keyword">protected</span> <span class="code-keyword">abstract</span> AbstractApplicationContext createApplicationContext();
 </pre>
 </div></div>
 <p>You are responsible for the instantiation of the Spring context in the method implementation. &#160;All of the features available in the non-Spring aware counterparts from <a shape="rect" href="camel-test.html" title="Camel Test">Camel Test</a> are available in your test.</p>
@@ -2205,7 +2206,8 @@ Override when using <a shape="rect" href
 
 <p>For instance, like this maven folder layout:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">src/test/java/org/apache/camel/spring/patterns/FilterTest.java
+<pre class="code-java">
+src/test/java/org/apache/camel/spring/patterns/FilterTest.java
 src/test/resources/org/apache/camel/spring/patterns/FilterTest-context.xml
 </pre>
 </div></div>
@@ -2269,7 +2271,8 @@ src/test/resources/org/apache/camel/spri
 
 <p>You can avoid extending Spring classes by using the SpringJUnit4ClassRunner provided by Spring Test. &#160;This custom JUnit runner means you are free to choose your own class hierarchy while retaining all the capabilities of Spring Test.</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">@RunWith(SpringJUnit4ClassRunner.class)
+<pre class="code-java">
+@RunWith(SpringJUnit4ClassRunner.class)
 @ContextConfiguration
 <span class="code-keyword">public</span> class MyCamelTest {
 
@@ -2298,7 +2301,7 @@ src/test/resources/org/apache/camel/spri
 <p>Using org.apache.camel.test.junit4.CamelSpringJUnit4ClassRunner&#160;runner with the&#160;<b>@RunWith</b>&#160;annotation or extending org.apache.camel.testng.AbstractCamelTestNGSpringContextTests provides the full feature set of Spring Test with support for the feature set provided in the CamelTestSupport classes. &#160;A number of Camel specific annotations have been developed in order to provide for declarative manipulation of the Camel context(s) involved in the test. &#160;These annotations free your test classes from having to inherit from the CamelSpringTestSupport classes and also reduce the amount of code required to customize the tests.</p>
 
 <div class="table-wrap">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"> Annotation Class </th><th colspan="1" rowspan="1" class="confluenceTh"> Applies To </th><th colspan="1" rowspan="1" class="confluenceTh"> Description </th><th colspan="1" rowspan="1" class="confluenceTh"> Default Behavioir If Not Present </th><th colspan="1" rowspan="1" class="confluenceTh"> Default Behavior If Present </th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.DisableJmx <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Class </td><td colspan="1" rowspan="1" class="confluenceTd"> Indicates if JMX should be globally disabled in the CamelContexts that are bootstrapped &#160;during the test through the use of Spring Test loaded application contexts. <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> JMX is disabled </td><td colspan="1" rows
 pan="1" class="confluenceTd"> JMX is disabled <br clear="none" class="atl-forced-newline"> </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.ExcludeRoutes <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Class <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Indicates if certain route builder classes should be excluded from discovery. &#160;Initializes a org.apache.camel.spi.PackageScanClassResolver&#160;to exclude a set of given classes from being resolved. Typically this is used at test time to exclude certain routes,&#160;which might otherwise be just noisy, from being discovered and initialized. <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Not enabled and no routes are excluded </td><td colspan="1" rowspan="1" class="confluenceTd"> No routes are excluded </td></tr><tr><td co
 lspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.LazyLoadTypeConverters (Deprecated) <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Class <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Indicates if the&#160;CamelContexts that are bootstrapped during the test through the use of Spring Test&#160;loaded application contexts should use lazy loading of type converters. </td><td colspan="1" rowspan="1" class="confluenceTd"> Type converters are not lazy loaded </td><td colspan="1" rowspan="1" class="confluenceTd"> Type converters are not lazy loaded </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.MockEndpoints <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Class <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd
 "> Triggers the auto-mocking of endpoints whose URIs match the provided filter.&#160; The default&#160;filter is "*" which matches all endpoints. &#160;See&#160;org.apache.camel.impl.InterceptSendToMockEndpointStrategy&#160;for&#160;more details on the registration of the mock endpoints. </td><td colspan="1" rowspan="1" class="confluenceTd"> Not enabled </td><td colspan="1" rowspan="1" class="confluenceTd"> All endpoints are sniffed and recorded in a mock endpoint. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.MockEndpointsAndSkip<br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Class </td><td colspan="1" rowspan="1" class="confluenceTd"> Triggers the auto-mocking of endpoints whose URIs match the provided filter.&#160; The default&#160;filter is "*" which matches all endpoints. &#160;See&#160;org.apache.camel.impl.InterceptSendToMockEndpointStrategy&#160;for&#160;more details on
  the registration of the mock endpoints. &#160;This annotation will also skip sending the message to matched endpoints as well.<br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Not enabled<br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> All endpoints are sniffed and recorded in a mock endpoint. &#160;The original endpoint is not invoked.<br clear="none" class="atl-forced-newline"> </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.ProvidesBreakpoint <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Method </td><td colspan="1" rowspan="1" class="confluenceTd"> Indicates that the annotated method returns an&#160;org.apache.camel.spi.Breakpoint&#160;for use in the test.&#160; Useful for intercepting&#160;traffic to all endpoints or simply for setting a break point in an IDE for debugging.
 &#160; The method must&#160;be public, static, take no arguments, and return org.apache.camel.spi.Breakpoint. <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> N/A </td><td colspan="1" rowspan="1" class="confluenceTd"> The returned Breakpoint is registered in the CamelContext(s) </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.ShutdownTimeout <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Class <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Indicates to set the shutdown timeout of all CamelContexts instantiated through the&#160;use of Spring Test loaded application contexts.&#160; If no annotation is used, the timeout is&#160;automatically reduced to 10 seconds by the test framework. <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceT
 d"> 10 seconds </td><td colspan="1" rowspan="1" class="confluenceTd"> 10 seconds </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.UseAdviceWith <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Class <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Indicates the use of adviceWith() within the test class.&#160; If a class is annotated with&#160;this annotation and UseAdviceWith#value()&#160;returns true, any&#160;CamelContexts bootstrapped during the test through the use of Spring Test loaded&#160;application contexts will not be started automatically.&#160; The test author is responsible for&#160;injecting the Camel contexts into the test and executing CamelContext#start()&#160;on them&#160;at the appropriate time after any advice has been applied to the routes in the CamelContext(s). <br clear="none" class="atl-forced-newline"> </t
 d><td colspan="1" rowspan="1" class="confluenceTd"> CamelContexts do not automatically start. </td><td colspan="1" rowspan="1" class="confluenceTd"> CamelContexts do not automatically start. </td></tr></tbody></table>
+<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"> Annotation Class </th><th colspan="1" rowspan="1" class="confluenceTh"> Applies To </th><th colspan="1" rowspan="1" class="confluenceTh"> Description </th><th colspan="1" rowspan="1" class="confluenceTh"> Default Behavioir If Not Present </th><th colspan="1" rowspan="1" class="confluenceTh"> Default Behavior If Present </th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.DisableJmx <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Class </td><td colspan="1" rowspan="1" class="confluenceTd"> Indicates if JMX should be globally disabled in the CamelContexts that are bootstrapped &#160;during the test through the use of Spring Test loaded application contexts. <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> JMX is disabled </td><td colspan="1" rows
 pan="1" class="confluenceTd"> JMX is disabled <br clear="none" class="atl-forced-newline"> </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.ExcludeRoutes <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Class <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Indicates if certain route builder classes should be excluded from discovery. &#160;Initializes a org.apache.camel.spi.PackageScanClassResolver&#160;to exclude a set of given classes from being resolved. Typically this is used at test time to exclude certain routes,&#160;which might otherwise be just noisy, from being discovered and initialized. <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Not enabled and no routes are excluded </td><td colspan="1" rowspan="1" class="confluenceTd"> No routes are excluded </td></tr><tr><td co
 lspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.LazyLoadTypeConverters (Deprecated) <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Class <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Indicates if the&#160;CamelContexts that are bootstrapped during the test through the use of Spring Test&#160;loaded application contexts should use lazy loading of type converters. </td><td colspan="1" rowspan="1" class="confluenceTd"> Type converters are not lazy loaded </td><td colspan="1" rowspan="1" class="confluenceTd"> Type converters are not lazy loaded </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.MockEndpoints <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Class <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd
 "> Triggers the auto-mocking of endpoints whose URIs match the provided filter.&#160; The default&#160;filter is "*" which matches all endpoints. &#160;See&#160;org.apache.camel.impl.InterceptSendToMockEndpointStrategy&#160;for&#160;more details on the registration of the mock endpoints. </td><td colspan="1" rowspan="1" class="confluenceTd"> Not enabled </td><td colspan="1" rowspan="1" class="confluenceTd"> All endpoints are sniffed and recorded in a mock endpoint. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.MockEndpointsAndSkip<br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Class </td><td colspan="1" rowspan="1" class="confluenceTd"> Triggers the auto-mocking of endpoints whose URIs match the provided filter.&#160; The default&#160;filter is "*", which matches all endpoints. &#160;See&#160;<a shape="rect" class="external-link" href="http://svn.apache.org/viewvc/camel/trunk/c
 amel-core/src/main/java/org/apache/camel/impl/InterceptSendToMockEndpointStrategy.java?view=markup">org.apache.camel.impl.InterceptSendToMockEndpointStrategy</a>&#160;for&#160;more details on the registration of the mock endpoints. &#160;This annotation will also skip sending the message to matched endpoints as well.<br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Not enabled<br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> All endpoints are sniffed and recorded in a mock endpoint. &#160;The original endpoint is not invoked.<br clear="none" class="atl-forced-newline"> </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.ProvidesBreakpoint <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Method </td><td colspan="1" rowspan="1" class="confluenceTd"> Indicates that the annotated method ret
 urns an&#160;org.apache.camel.spi.Breakpoint&#160;for use in the test.&#160; Useful for intercepting&#160;traffic to all endpoints or simply for setting a break point in an IDE for debugging.&#160; The method must&#160;be public, static, take no arguments, and return org.apache.camel.spi.Breakpoint. <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> N/A </td><td colspan="1" rowspan="1" class="confluenceTd"> The returned Breakpoint is registered in the CamelContext(s) </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.ShutdownTimeout <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Class <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Indicates to set the shutdown timeout of all CamelContexts instantiated through the&#160;use of Spring Test loaded application contexts.&#160; If no anno
 tation is used, the timeout is&#160;automatically reduced to 10 seconds by the test framework. <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> 10 seconds </td><td colspan="1" rowspan="1" class="confluenceTd"> 10 seconds </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.UseAdviceWith <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Class <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Indicates the use of adviceWith() within the test class.&#160; If a class is annotated with&#160;this annotation and UseAdviceWith#value()&#160;returns true, any&#160;CamelContexts bootstrapped during the test through the use of Spring Test loaded&#160;application contexts will not be started automatically.&#160; The test author is responsible for&#160;injecting the Camel contexts into the test and ex
 ecuting CamelContext#start()&#160;on them&#160;at the appropriate time after any advice has been applied to the routes in the CamelContext(s). <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> CamelContexts do not automatically start. </td><td colspan="1" rowspan="1" class="confluenceTd"> CamelContexts do not automatically start. </td></tr></tbody></table>
 </div>
 
 
@@ -2306,7 +2309,8 @@ src/test/resources/org/apache/camel/spri
 <p>The following example illustrates the use of the <b>@MockEndpoints</b>&#160;annotation in order to setup mock endpoints as interceptors on all endpoints using the Camel Log component and the <b>@DisableJmx</b> annotation to enable JMX which is disabled during tests by default. &#160;Note that we still use the <b>@DirtiesContext</b> annotation to ensure that the CamelContext, routes, and mock endpoints are reinitialized between test methods.</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">@RunWith(CamelSpringJUnit4ClassRunner.class)
+<pre class="code-java">
+@RunWith(CamelSpringJUnit4ClassRunner.class)
 @ContextConfiguration
 @DirtiesContext(classMode = ClassMode.AFTER_EACH_TEST_METHOD)
 @MockEndpoints(<span class="code-quote">"log:*"</span>)
@@ -2346,7 +2350,8 @@ src/test/resources/org/apache/camel/spri
 <p>If you wish to programmatically add any new assertions to your test you can easily do so with the following. Notice how we use @EndpointInject to inject a Camel endpoint into our code then the <a shape="rect" href="mock.html" title="Mock">Mock</a> API to add an expectation on a specific message.</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">@ContextConfiguration
+<pre class="code-java">
+@ContextConfiguration
 <span class="code-keyword">public</span> class MyCamelTest <span class="code-keyword">extends</span> AbstractJUnit38SpringContextTests {
 
     @Autowired
@@ -2372,7 +2377,8 @@ src/test/resources/org/apache/camel/spri
 <p>So you can then process the received message exchanges if you like...</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">@ContextConfiguration
+<pre class="code-java">
+@ContextConfiguration
 <span class="code-keyword">public</span> class MyCamelTest <span class="code-keyword">extends</span> AbstractJUnit38SpringContextTests {
 
     @Autowired
@@ -2404,7 +2410,8 @@ src/test/resources/org/apache/camel/spri
 <p>To send or receive messages you should use the <a shape="rect" href="bean-integration.html" title="Bean Integration">Bean Integration</a> mechanism. For example to send messages inject a ProducerTemplate using the @EndpointInject annotation then call the various send methods on this object to send a message to an endpoint. To consume messages use the @MessageDriven annotation on a method to have the method invoked when a message is received.</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java"><span class="code-keyword">public</span> class Foo {
+<pre class="code-java">
+<span class="code-keyword">public</span> class Foo {
   @EndpointInject(uri=<span class="code-quote">"activemq:foo.bar"</span>)
   ProducerTemplate producer;
 

Modified: websites/production/camel/content/book-in-one-page.html
==============================================================================
--- websites/production/camel/content/book-in-one-page.html (original)
+++ websites/production/camel/content/book-in-one-page.html Thu May  3 15:21:32 2012
@@ -3269,7 +3269,8 @@ Override when using <a shape="rect" href
 <p>org.apache.camel.test.CamelSpringTestSupport, org.apache.camel.test.junit4.CamelSpringTestSupport, and org.apache.camel.testng.CamelSpringTestSupport&#160;extend their non-Spring aware counterparts (org.apache.camel.test.CamelTestSupport, org.apache.camel.test.junit4.CamelTestSupport, and org.apache.camel.testng.CamelTestSupport) and deliver integration with Spring into your test classes. &#160;Instead of&#160;instantiating&#160;the CamelContext and routes programmatically, these classes rely on a Spring context to wire the needed components together. &#160;If your test extends one of these classes, you must provide the Spring context by implementing the following method.</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java"><span class="code-keyword">protected</span> <span class="code-keyword">abstract</span> AbstractApplicationContext createApplicationContext();
+<pre class="code-java">
+<span class="code-keyword">protected</span> <span class="code-keyword">abstract</span> AbstractApplicationContext createApplicationContext();
 </pre>
 </div></div>
 <p>You are responsible for the instantiation of the Spring context in the method implementation. &#160;All of the features available in the non-Spring aware counterparts from <a shape="rect" href="camel-test.html" title="Camel Test">Camel Test</a> are available in your test.</p>
@@ -3342,7 +3343,8 @@ Override when using <a shape="rect" href
 
 <p>For instance, like this maven folder layout:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">src/test/java/org/apache/camel/spring/patterns/FilterTest.java
+<pre class="code-java">
+src/test/java/org/apache/camel/spring/patterns/FilterTest.java
 src/test/resources/org/apache/camel/spring/patterns/FilterTest-context.xml
 </pre>
 </div></div>
@@ -3406,7 +3408,8 @@ src/test/resources/org/apache/camel/spri
 
 <p>You can avoid extending Spring classes by using the SpringJUnit4ClassRunner provided by Spring Test. &#160;This custom JUnit runner means you are free to choose your own class hierarchy while retaining all the capabilities of Spring Test.</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">@RunWith(SpringJUnit4ClassRunner.class)
+<pre class="code-java">
+@RunWith(SpringJUnit4ClassRunner.class)
 @ContextConfiguration
 <span class="code-keyword">public</span> class MyCamelTest {
 
@@ -3435,7 +3438,7 @@ src/test/resources/org/apache/camel/spri
 <p>Using org.apache.camel.test.junit4.CamelSpringJUnit4ClassRunner&#160;runner with the&#160;<b>@RunWith</b>&#160;annotation or extending org.apache.camel.testng.AbstractCamelTestNGSpringContextTests provides the full feature set of Spring Test with support for the feature set provided in the CamelTestSupport classes. &#160;A number of Camel specific annotations have been developed in order to provide for declarative manipulation of the Camel context(s) involved in the test. &#160;These annotations free your test classes from having to inherit from the CamelSpringTestSupport classes and also reduce the amount of code required to customize the tests.</p>
 
 <div class="table-wrap">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"> Annotation Class </th><th colspan="1" rowspan="1" class="confluenceTh"> Applies To </th><th colspan="1" rowspan="1" class="confluenceTh"> Description </th><th colspan="1" rowspan="1" class="confluenceTh"> Default Behavioir If Not Present </th><th colspan="1" rowspan="1" class="confluenceTh"> Default Behavior If Present </th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.DisableJmx <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Class </td><td colspan="1" rowspan="1" class="confluenceTd"> Indicates if JMX should be globally disabled in the CamelContexts that are bootstrapped &#160;during the test through the use of Spring Test loaded application contexts. <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> JMX is disabled </td><td colspan="1" rows
 pan="1" class="confluenceTd"> JMX is disabled <br clear="none" class="atl-forced-newline"> </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.ExcludeRoutes <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Class <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Indicates if certain route builder classes should be excluded from discovery. &#160;Initializes a org.apache.camel.spi.PackageScanClassResolver&#160;to exclude a set of given classes from being resolved. Typically this is used at test time to exclude certain routes,&#160;which might otherwise be just noisy, from being discovered and initialized. <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Not enabled and no routes are excluded </td><td colspan="1" rowspan="1" class="confluenceTd"> No routes are excluded </td></tr><tr><td co
 lspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.LazyLoadTypeConverters (Deprecated) <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Class <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Indicates if the&#160;CamelContexts that are bootstrapped during the test through the use of Spring Test&#160;loaded application contexts should use lazy loading of type converters. </td><td colspan="1" rowspan="1" class="confluenceTd"> Type converters are not lazy loaded </td><td colspan="1" rowspan="1" class="confluenceTd"> Type converters are not lazy loaded </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.MockEndpoints <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Class <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd
 "> Triggers the auto-mocking of endpoints whose URIs match the provided filter.&#160; The default&#160;filter is "*" which matches all endpoints. &#160;See&#160;org.apache.camel.impl.InterceptSendToMockEndpointStrategy&#160;for&#160;more details on the registration of the mock endpoints. </td><td colspan="1" rowspan="1" class="confluenceTd"> Not enabled </td><td colspan="1" rowspan="1" class="confluenceTd"> All endpoints are sniffed and recorded in a mock endpoint. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.MockEndpointsAndSkip<br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Class </td><td colspan="1" rowspan="1" class="confluenceTd"> Triggers the auto-mocking of endpoints whose URIs match the provided filter.&#160; The default&#160;filter is "*" which matches all endpoints. &#160;See&#160;org.apache.camel.impl.InterceptSendToMockEndpointStrategy&#160;for&#160;more details on
  the registration of the mock endpoints. &#160;This annotation will also skip sending the message to matched endpoints as well.<br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Not enabled<br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> All endpoints are sniffed and recorded in a mock endpoint. &#160;The original endpoint is not invoked.<br clear="none" class="atl-forced-newline"> </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.ProvidesBreakpoint <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Method </td><td colspan="1" rowspan="1" class="confluenceTd"> Indicates that the annotated method returns an&#160;org.apache.camel.spi.Breakpoint&#160;for use in the test.&#160; Useful for intercepting&#160;traffic to all endpoints or simply for setting a break point in an IDE for debugging.
 &#160; The method must&#160;be public, static, take no arguments, and return org.apache.camel.spi.Breakpoint. <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> N/A </td><td colspan="1" rowspan="1" class="confluenceTd"> The returned Breakpoint is registered in the CamelContext(s) </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.ShutdownTimeout <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Class <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Indicates to set the shutdown timeout of all CamelContexts instantiated through the&#160;use of Spring Test loaded application contexts.&#160; If no annotation is used, the timeout is&#160;automatically reduced to 10 seconds by the test framework. <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceT
 d"> 10 seconds </td><td colspan="1" rowspan="1" class="confluenceTd"> 10 seconds </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.UseAdviceWith <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Class <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Indicates the use of adviceWith() within the test class.&#160; If a class is annotated with&#160;this annotation and UseAdviceWith#value()&#160;returns true, any&#160;CamelContexts bootstrapped during the test through the use of Spring Test loaded&#160;application contexts will not be started automatically.&#160; The test author is responsible for&#160;injecting the Camel contexts into the test and executing CamelContext#start()&#160;on them&#160;at the appropriate time after any advice has been applied to the routes in the CamelContext(s). <br clear="none" class="atl-forced-newline"> </t
 d><td colspan="1" rowspan="1" class="confluenceTd"> CamelContexts do not automatically start. </td><td colspan="1" rowspan="1" class="confluenceTd"> CamelContexts do not automatically start. </td></tr></tbody></table>
+<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"> Annotation Class </th><th colspan="1" rowspan="1" class="confluenceTh"> Applies To </th><th colspan="1" rowspan="1" class="confluenceTh"> Description </th><th colspan="1" rowspan="1" class="confluenceTh"> Default Behavioir If Not Present </th><th colspan="1" rowspan="1" class="confluenceTh"> Default Behavior If Present </th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.DisableJmx <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Class </td><td colspan="1" rowspan="1" class="confluenceTd"> Indicates if JMX should be globally disabled in the CamelContexts that are bootstrapped &#160;during the test through the use of Spring Test loaded application contexts. <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> JMX is disabled </td><td colspan="1" rows
 pan="1" class="confluenceTd"> JMX is disabled <br clear="none" class="atl-forced-newline"> </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.ExcludeRoutes <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Class <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Indicates if certain route builder classes should be excluded from discovery. &#160;Initializes a org.apache.camel.spi.PackageScanClassResolver&#160;to exclude a set of given classes from being resolved. Typically this is used at test time to exclude certain routes,&#160;which might otherwise be just noisy, from being discovered and initialized. <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Not enabled and no routes are excluded </td><td colspan="1" rowspan="1" class="confluenceTd"> No routes are excluded </td></tr><tr><td co
 lspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.LazyLoadTypeConverters (Deprecated) <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Class <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Indicates if the&#160;CamelContexts that are bootstrapped during the test through the use of Spring Test&#160;loaded application contexts should use lazy loading of type converters. </td><td colspan="1" rowspan="1" class="confluenceTd"> Type converters are not lazy loaded </td><td colspan="1" rowspan="1" class="confluenceTd"> Type converters are not lazy loaded </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.MockEndpoints <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Class <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd
 "> Triggers the auto-mocking of endpoints whose URIs match the provided filter.&#160; The default&#160;filter is "*" which matches all endpoints. &#160;See&#160;org.apache.camel.impl.InterceptSendToMockEndpointStrategy&#160;for&#160;more details on the registration of the mock endpoints. </td><td colspan="1" rowspan="1" class="confluenceTd"> Not enabled </td><td colspan="1" rowspan="1" class="confluenceTd"> All endpoints are sniffed and recorded in a mock endpoint. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.MockEndpointsAndSkip<br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Class </td><td colspan="1" rowspan="1" class="confluenceTd"> Triggers the auto-mocking of endpoints whose URIs match the provided filter.&#160; The default&#160;filter is "*", which matches all endpoints. &#160;See&#160;<a shape="rect" class="external-link" href="http://svn.apache.org/viewvc/camel/trunk/c
 amel-core/src/main/java/org/apache/camel/impl/InterceptSendToMockEndpointStrategy.java?view=markup">org.apache.camel.impl.InterceptSendToMockEndpointStrategy</a>&#160;for&#160;more details on the registration of the mock endpoints. &#160;This annotation will also skip sending the message to matched endpoints as well.<br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Not enabled<br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> All endpoints are sniffed and recorded in a mock endpoint. &#160;The original endpoint is not invoked.<br clear="none" class="atl-forced-newline"> </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.ProvidesBreakpoint <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Method </td><td colspan="1" rowspan="1" class="confluenceTd"> Indicates that the annotated method ret
 urns an&#160;org.apache.camel.spi.Breakpoint&#160;for use in the test.&#160; Useful for intercepting&#160;traffic to all endpoints or simply for setting a break point in an IDE for debugging.&#160; The method must&#160;be public, static, take no arguments, and return org.apache.camel.spi.Breakpoint. <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> N/A </td><td colspan="1" rowspan="1" class="confluenceTd"> The returned Breakpoint is registered in the CamelContext(s) </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.ShutdownTimeout <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Class <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Indicates to set the shutdown timeout of all CamelContexts instantiated through the&#160;use of Spring Test loaded application contexts.&#160; If no anno
 tation is used, the timeout is&#160;automatically reduced to 10 seconds by the test framework. <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> 10 seconds </td><td colspan="1" rowspan="1" class="confluenceTd"> 10 seconds </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.UseAdviceWith <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Class <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Indicates the use of adviceWith() within the test class.&#160; If a class is annotated with&#160;this annotation and UseAdviceWith#value()&#160;returns true, any&#160;CamelContexts bootstrapped during the test through the use of Spring Test loaded&#160;application contexts will not be started automatically.&#160; The test author is responsible for&#160;injecting the Camel contexts into the test and ex
 ecuting CamelContext#start()&#160;on them&#160;at the appropriate time after any advice has been applied to the routes in the CamelContext(s). <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> CamelContexts do not automatically start. </td><td colspan="1" rowspan="1" class="confluenceTd"> CamelContexts do not automatically start. </td></tr></tbody></table>
 </div>
 
 
@@ -3443,7 +3446,8 @@ src/test/resources/org/apache/camel/spri
 <p>The following example illustrates the use of the <b>@MockEndpoints</b>&#160;annotation in order to setup mock endpoints as interceptors on all endpoints using the Camel Log component and the <b>@DisableJmx</b> annotation to enable JMX which is disabled during tests by default. &#160;Note that we still use the <b>@DirtiesContext</b> annotation to ensure that the CamelContext, routes, and mock endpoints are reinitialized between test methods.</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">@RunWith(CamelSpringJUnit4ClassRunner.class)
+<pre class="code-java">
+@RunWith(CamelSpringJUnit4ClassRunner.class)
 @ContextConfiguration
 @DirtiesContext(classMode = ClassMode.AFTER_EACH_TEST_METHOD)
 @MockEndpoints(<span class="code-quote">"log:*"</span>)
@@ -3483,7 +3487,8 @@ src/test/resources/org/apache/camel/spri
 <p>If you wish to programmatically add any new assertions to your test you can easily do so with the following. Notice how we use @EndpointInject to inject a Camel endpoint into our code then the <a shape="rect" href="mock.html" title="Mock">Mock</a> API to add an expectation on a specific message.</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">@ContextConfiguration
+<pre class="code-java">
+@ContextConfiguration
 <span class="code-keyword">public</span> class MyCamelTest <span class="code-keyword">extends</span> AbstractJUnit38SpringContextTests {
 
     @Autowired
@@ -3509,7 +3514,8 @@ src/test/resources/org/apache/camel/spri
 <p>So you can then process the received message exchanges if you like...</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">@ContextConfiguration
+<pre class="code-java">
+@ContextConfiguration
 <span class="code-keyword">public</span> class MyCamelTest <span class="code-keyword">extends</span> AbstractJUnit38SpringContextTests {
 
     @Autowired
@@ -3541,7 +3547,8 @@ src/test/resources/org/apache/camel/spri
 <p>To send or receive messages you should use the <a shape="rect" href="bean-integration.html" title="Bean Integration">Bean Integration</a> mechanism. For example to send messages inject a ProducerTemplate using the @EndpointInject annotation then call the various send methods on this object to send a message to an endpoint. To consume messages use the @MessageDriven annotation on a method to have the method invoked when a message is received.</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java"><span class="code-keyword">public</span> class Foo {
+<pre class="code-java">
+<span class="code-keyword">public</span> class Foo {
   @EndpointInject(uri=<span class="code-quote">"activemq:foo.bar"</span>)
   ProducerTemplate producer;
 

Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/camel/content/spring-testing.html
==============================================================================
--- websites/production/camel/content/spring-testing.html (original)
+++ websites/production/camel/content/spring-testing.html Thu May  3 15:21:32 2012
@@ -96,7 +96,8 @@
 <p>org.apache.camel.test.CamelSpringTestSupport, org.apache.camel.test.junit4.CamelSpringTestSupport, and org.apache.camel.testng.CamelSpringTestSupport&#160;extend their non-Spring aware counterparts (org.apache.camel.test.CamelTestSupport, org.apache.camel.test.junit4.CamelTestSupport, and org.apache.camel.testng.CamelTestSupport) and deliver integration with Spring into your test classes. &#160;Instead of&#160;instantiating&#160;the CamelContext and routes programmatically, these classes rely on a Spring context to wire the needed components together. &#160;If your test extends one of these classes, you must provide the Spring context by implementing the following method.</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java"><span class="code-keyword">protected</span> <span class="code-keyword">abstract</span> AbstractApplicationContext createApplicationContext();
+<pre class="code-java">
+<span class="code-keyword">protected</span> <span class="code-keyword">abstract</span> AbstractApplicationContext createApplicationContext();
 </pre>
 </div></div>
 <p>You are responsible for the instantiation of the Spring context in the method implementation. &#160;All of the features available in the non-Spring aware counterparts from <a shape="rect" href="camel-test.html" title="Camel Test">Camel Test</a> are available in your test.</p>
@@ -169,7 +170,8 @@
 
 <p>For instance, like this maven folder layout:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">src/test/java/org/apache/camel/spring/patterns/FilterTest.java
+<pre class="code-java">
+src/test/java/org/apache/camel/spring/patterns/FilterTest.java
 src/test/resources/org/apache/camel/spring/patterns/FilterTest-context.xml
 </pre>
 </div></div>
@@ -233,7 +235,8 @@ src/test/resources/org/apache/camel/spri
 
 <p>You can avoid extending Spring classes by using the SpringJUnit4ClassRunner provided by Spring Test. &#160;This custom JUnit runner means you are free to choose your own class hierarchy while retaining all the capabilities of Spring Test.</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">@RunWith(SpringJUnit4ClassRunner.class)
+<pre class="code-java">
+@RunWith(SpringJUnit4ClassRunner.class)
 @ContextConfiguration
 <span class="code-keyword">public</span> class MyCamelTest {
 
@@ -262,7 +265,7 @@ src/test/resources/org/apache/camel/spri
 <p>Using org.apache.camel.test.junit4.CamelSpringJUnit4ClassRunner&#160;runner with the&#160;<b>@RunWith</b>&#160;annotation or extending org.apache.camel.testng.AbstractCamelTestNGSpringContextTests provides the full feature set of Spring Test with support for the feature set provided in the CamelTestSupport classes. &#160;A number of Camel specific annotations have been developed in order to provide for declarative manipulation of the Camel context(s) involved in the test. &#160;These annotations free your test classes from having to inherit from the CamelSpringTestSupport classes and also reduce the amount of code required to customize the tests.</p>
 
 <div class="table-wrap">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"> Annotation Class </th><th colspan="1" rowspan="1" class="confluenceTh"> Applies To </th><th colspan="1" rowspan="1" class="confluenceTh"> Description </th><th colspan="1" rowspan="1" class="confluenceTh"> Default Behavioir If Not Present </th><th colspan="1" rowspan="1" class="confluenceTh"> Default Behavior If Present </th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.DisableJmx <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Class </td><td colspan="1" rowspan="1" class="confluenceTd"> Indicates if JMX should be globally disabled in the CamelContexts that are bootstrapped &#160;during the test through the use of Spring Test loaded application contexts. <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> JMX is disabled </td><td colspan="1" rows
 pan="1" class="confluenceTd"> JMX is disabled <br clear="none" class="atl-forced-newline"> </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.ExcludeRoutes <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Class <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Indicates if certain route builder classes should be excluded from discovery. &#160;Initializes a org.apache.camel.spi.PackageScanClassResolver&#160;to exclude a set of given classes from being resolved. Typically this is used at test time to exclude certain routes,&#160;which might otherwise be just noisy, from being discovered and initialized. <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Not enabled and no routes are excluded </td><td colspan="1" rowspan="1" class="confluenceTd"> No routes are excluded </td></tr><tr><td co
 lspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.LazyLoadTypeConverters (Deprecated) <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Class <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Indicates if the&#160;CamelContexts that are bootstrapped during the test through the use of Spring Test&#160;loaded application contexts should use lazy loading of type converters. </td><td colspan="1" rowspan="1" class="confluenceTd"> Type converters are not lazy loaded </td><td colspan="1" rowspan="1" class="confluenceTd"> Type converters are not lazy loaded </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.MockEndpoints <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Class <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd
 "> Triggers the auto-mocking of endpoints whose URIs match the provided filter.&#160; The default&#160;filter is "*" which matches all endpoints. &#160;See&#160;org.apache.camel.impl.InterceptSendToMockEndpointStrategy&#160;for&#160;more details on the registration of the mock endpoints. </td><td colspan="1" rowspan="1" class="confluenceTd"> Not enabled </td><td colspan="1" rowspan="1" class="confluenceTd"> All endpoints are sniffed and recorded in a mock endpoint. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.MockEndpointsAndSkip<br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Class </td><td colspan="1" rowspan="1" class="confluenceTd"> Triggers the auto-mocking of endpoints whose URIs match the provided filter.&#160; The default&#160;filter is "*" which matches all endpoints. &#160;See&#160;org.apache.camel.impl.InterceptSendToMockEndpointStrategy&#160;for&#160;more details on
  the registration of the mock endpoints. &#160;This annotation will also skip sending the message to matched endpoints as well.<br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Not enabled<br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> All endpoints are sniffed and recorded in a mock endpoint. &#160;The original endpoint is not invoked.<br clear="none" class="atl-forced-newline"> </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.ProvidesBreakpoint <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Method </td><td colspan="1" rowspan="1" class="confluenceTd"> Indicates that the annotated method returns an&#160;org.apache.camel.spi.Breakpoint&#160;for use in the test.&#160; Useful for intercepting&#160;traffic to all endpoints or simply for setting a break point in an IDE for debugging.
 &#160; The method must&#160;be public, static, take no arguments, and return org.apache.camel.spi.Breakpoint. <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> N/A </td><td colspan="1" rowspan="1" class="confluenceTd"> The returned Breakpoint is registered in the CamelContext(s) </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.ShutdownTimeout <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Class <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Indicates to set the shutdown timeout of all CamelContexts instantiated through the&#160;use of Spring Test loaded application contexts.&#160; If no annotation is used, the timeout is&#160;automatically reduced to 10 seconds by the test framework. <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceT
 d"> 10 seconds </td><td colspan="1" rowspan="1" class="confluenceTd"> 10 seconds </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.UseAdviceWith <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Class <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Indicates the use of adviceWith() within the test class.&#160; If a class is annotated with&#160;this annotation and UseAdviceWith#value()&#160;returns true, any&#160;CamelContexts bootstrapped during the test through the use of Spring Test loaded&#160;application contexts will not be started automatically.&#160; The test author is responsible for&#160;injecting the Camel contexts into the test and executing CamelContext#start()&#160;on them&#160;at the appropriate time after any advice has been applied to the routes in the CamelContext(s). <br clear="none" class="atl-forced-newline"> </t
 d><td colspan="1" rowspan="1" class="confluenceTd"> CamelContexts do not automatically start. </td><td colspan="1" rowspan="1" class="confluenceTd"> CamelContexts do not automatically start. </td></tr></tbody></table>
+<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"> Annotation Class </th><th colspan="1" rowspan="1" class="confluenceTh"> Applies To </th><th colspan="1" rowspan="1" class="confluenceTh"> Description </th><th colspan="1" rowspan="1" class="confluenceTh"> Default Behavioir If Not Present </th><th colspan="1" rowspan="1" class="confluenceTh"> Default Behavior If Present </th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.DisableJmx <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Class </td><td colspan="1" rowspan="1" class="confluenceTd"> Indicates if JMX should be globally disabled in the CamelContexts that are bootstrapped &#160;during the test through the use of Spring Test loaded application contexts. <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> JMX is disabled </td><td colspan="1" rows
 pan="1" class="confluenceTd"> JMX is disabled <br clear="none" class="atl-forced-newline"> </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.ExcludeRoutes <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Class <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Indicates if certain route builder classes should be excluded from discovery. &#160;Initializes a org.apache.camel.spi.PackageScanClassResolver&#160;to exclude a set of given classes from being resolved. Typically this is used at test time to exclude certain routes,&#160;which might otherwise be just noisy, from being discovered and initialized. <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Not enabled and no routes are excluded </td><td colspan="1" rowspan="1" class="confluenceTd"> No routes are excluded </td></tr><tr><td co
 lspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.LazyLoadTypeConverters (Deprecated) <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Class <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Indicates if the&#160;CamelContexts that are bootstrapped during the test through the use of Spring Test&#160;loaded application contexts should use lazy loading of type converters. </td><td colspan="1" rowspan="1" class="confluenceTd"> Type converters are not lazy loaded </td><td colspan="1" rowspan="1" class="confluenceTd"> Type converters are not lazy loaded </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.MockEndpoints <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Class <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd
 "> Triggers the auto-mocking of endpoints whose URIs match the provided filter.&#160; The default&#160;filter is "*" which matches all endpoints. &#160;See&#160;org.apache.camel.impl.InterceptSendToMockEndpointStrategy&#160;for&#160;more details on the registration of the mock endpoints. </td><td colspan="1" rowspan="1" class="confluenceTd"> Not enabled </td><td colspan="1" rowspan="1" class="confluenceTd"> All endpoints are sniffed and recorded in a mock endpoint. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.MockEndpointsAndSkip<br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Class </td><td colspan="1" rowspan="1" class="confluenceTd"> Triggers the auto-mocking of endpoints whose URIs match the provided filter.&#160; The default&#160;filter is "*", which matches all endpoints. &#160;See&#160;<a shape="rect" class="external-link" href="http://svn.apache.org/viewvc/camel/trunk/c
 amel-core/src/main/java/org/apache/camel/impl/InterceptSendToMockEndpointStrategy.java?view=markup">org.apache.camel.impl.InterceptSendToMockEndpointStrategy</a>&#160;for&#160;more details on the registration of the mock endpoints. &#160;This annotation will also skip sending the message to matched endpoints as well.<br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Not enabled<br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> All endpoints are sniffed and recorded in a mock endpoint. &#160;The original endpoint is not invoked.<br clear="none" class="atl-forced-newline"> </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.ProvidesBreakpoint <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Method </td><td colspan="1" rowspan="1" class="confluenceTd"> Indicates that the annotated method ret
 urns an&#160;org.apache.camel.spi.Breakpoint&#160;for use in the test.&#160; Useful for intercepting&#160;traffic to all endpoints or simply for setting a break point in an IDE for debugging.&#160; The method must&#160;be public, static, take no arguments, and return org.apache.camel.spi.Breakpoint. <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> N/A </td><td colspan="1" rowspan="1" class="confluenceTd"> The returned Breakpoint is registered in the CamelContext(s) </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.ShutdownTimeout <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Class <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Indicates to set the shutdown timeout of all CamelContexts instantiated through the&#160;use of Spring Test loaded application contexts.&#160; If no anno
 tation is used, the timeout is&#160;automatically reduced to 10 seconds by the test framework. <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> 10 seconds </td><td colspan="1" rowspan="1" class="confluenceTd"> 10 seconds </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> org.apache.camel.test.spring.UseAdviceWith <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Class <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> Indicates the use of adviceWith() within the test class.&#160; If a class is annotated with&#160;this annotation and UseAdviceWith#value()&#160;returns true, any&#160;CamelContexts bootstrapped during the test through the use of Spring Test loaded&#160;application contexts will not be started automatically.&#160; The test author is responsible for&#160;injecting the Camel contexts into the test and ex
 ecuting CamelContext#start()&#160;on them&#160;at the appropriate time after any advice has been applied to the routes in the CamelContext(s). <br clear="none" class="atl-forced-newline"> </td><td colspan="1" rowspan="1" class="confluenceTd"> CamelContexts do not automatically start. </td><td colspan="1" rowspan="1" class="confluenceTd"> CamelContexts do not automatically start. </td></tr></tbody></table>
 </div>
 
 
@@ -270,7 +273,8 @@ src/test/resources/org/apache/camel/spri
 <p>The following example illustrates the use of the <b>@MockEndpoints</b>&#160;annotation in order to setup mock endpoints as interceptors on all endpoints using the Camel Log component and the <b>@DisableJmx</b> annotation to enable JMX which is disabled during tests by default. &#160;Note that we still use the <b>@DirtiesContext</b> annotation to ensure that the CamelContext, routes, and mock endpoints are reinitialized between test methods.</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">@RunWith(CamelSpringJUnit4ClassRunner.class)
+<pre class="code-java">
+@RunWith(CamelSpringJUnit4ClassRunner.class)
 @ContextConfiguration
 @DirtiesContext(classMode = ClassMode.AFTER_EACH_TEST_METHOD)
 @MockEndpoints(<span class="code-quote">"log:*"</span>)
@@ -310,7 +314,8 @@ src/test/resources/org/apache/camel/spri
 <p>If you wish to programmatically add any new assertions to your test you can easily do so with the following. Notice how we use @EndpointInject to inject a Camel endpoint into our code then the <a shape="rect" href="mock.html" title="Mock">Mock</a> API to add an expectation on a specific message.</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">@ContextConfiguration
+<pre class="code-java">
+@ContextConfiguration
 <span class="code-keyword">public</span> class MyCamelTest <span class="code-keyword">extends</span> AbstractJUnit38SpringContextTests {
 
     @Autowired
@@ -336,7 +341,8 @@ src/test/resources/org/apache/camel/spri
 <p>So you can then process the received message exchanges if you like...</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">@ContextConfiguration
+<pre class="code-java">
+@ContextConfiguration
 <span class="code-keyword">public</span> class MyCamelTest <span class="code-keyword">extends</span> AbstractJUnit38SpringContextTests {
 
     @Autowired
@@ -368,7 +374,8 @@ src/test/resources/org/apache/camel/spri
 <p>To send or receive messages you should use the <a shape="rect" href="bean-integration.html" title="Bean Integration">Bean Integration</a> mechanism. For example to send messages inject a ProducerTemplate using the @EndpointInject annotation then call the various send methods on this object to send a message to an endpoint. To consume messages use the @MessageDriven annotation on a method to have the method invoked when a message is received.</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java"><span class="code-keyword">public</span> class Foo {
+<pre class="code-java">
+<span class="code-keyword">public</span> class Foo {
   @EndpointInject(uri=<span class="code-quote">"activemq:foo.bar"</span>)
   ProducerTemplate producer;
 



Mime
View raw message