CAMEL-20875 allow modify unsupportedCheck temporarily
diff --git a/components/camel-test/camel-test-junit5/src/main/java/org/apache/camel/test/junit5/CamelTestSupport.java b/components/camel-test/camel-test-junit5/src/main/java/org/apache/camel/test/junit5/CamelTestSupport.java
index 6e50639..85fe930 100644
--- a/components/camel-test/camel-test-junit5/src/main/java/org/apache/camel/test/junit5/CamelTestSupport.java
+++ b/components/camel-test/camel-test-junit5/src/main/java/org/apache/camel/test/junit5/CamelTestSupport.java
@@ -332,7 +332,7 @@
public void setUp() throws Exception {
testStartHeader(getClass(), currentTestName);
- ExtensionHelper.hasUnsupported(getClass());
+ unsupportedCheck();
if (isCreateCamelContextPerClass) {
createCamelContextPerClass();
@@ -413,6 +413,14 @@
}
}
+ /**
+ * Temporary method for the child classes to modify the unsupported check.
+ */
+ @Deprecated(since = "4.7.0")
+ protected void unsupportedCheck() {
+ ExtensionHelper.hasUnsupported(getClass());
+ }
+
@Deprecated(since = "4.7.0")
protected final void doSetUp() throws Exception {
LOG.debug("setUp test");