Add route-coverage to this example
diff --git a/spring-boot/pom.xml b/spring-boot/pom.xml
index c2e250c..affda41 100644
--- a/spring-boot/pom.xml
+++ b/spring-boot/pom.xml
@@ -103,6 +103,12 @@
<artifactId>camel-test-spring-junit5</artifactId>
<scope>test</scope>
</dependency>
+ <!-- JMX is needed for route coverage testing -->
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-management</artifactId>
+ <scope>test</scope>
+ </dependency>
</dependencies>
<build>
diff --git a/spring-boot/readme.adoc b/spring-boot/readme.adoc
index baf111d..6a3cf6f 100644
--- a/spring-boot/readme.adoc
+++ b/spring-boot/readme.adoc
@@ -37,6 +37,15 @@
See the `application.properties` to control what information to present in actuator.
+=== Route coverage
+
+This example has enabled testing with route coverage, which after running the test dumps a report, if you run:
+
+ mvn test camel-report:route-coverage
+
+See more details about route coverage at:
+https://camel.apache.org/manual/latest/camel-report-maven-plugin.html[camel-report-maven-plugin].
+
=== Help and contributions
If you hit any problem using Camel or have some feedback, then please
diff --git a/spring-boot/src/test/java/sample/camel/MyCamelApplicationJUnit5Test.java b/spring-boot/src/test/java/sample/camel/MyCamelApplicationJUnit5Test.java
index 21c7a2a..511d93a 100644
--- a/spring-boot/src/test/java/sample/camel/MyCamelApplicationJUnit5Test.java
+++ b/spring-boot/src/test/java/sample/camel/MyCamelApplicationJUnit5Test.java
@@ -21,6 +21,7 @@
import org.apache.camel.CamelContext;
import org.apache.camel.builder.NotifyBuilder;
import org.apache.camel.test.spring.junit5.CamelSpringBootTest;
+import org.apache.camel.test.spring.junit5.EnableRouteCoverage;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
@@ -30,6 +31,7 @@
@CamelSpringBootTest
@SpringBootTest(classes = MyCamelApplication.class)
+@EnableRouteCoverage
public class MyCamelApplicationJUnit5Test {
@Autowired