This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new c18d99785ef CAMEL-20875 allow modify unsupportedCheck temporarily
c18d99785ef is described below
commit c18d99785ef3429013dba6acb9c3e46ca95bee14
Author: JiriOndrusek <[email protected]>
AuthorDate: Mon May 27 11:39:26 2024 +0200
CAMEL-20875 allow modify unsupportedCheck temporarily
---
.../java/org/apache/camel/test/junit5/CamelTestSupport.java | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
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 6e50639aca8..85fe930ff18 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 abstract class CamelTestSupport
public void setUp() throws Exception {
testStartHeader(getClass(), currentTestName);
- ExtensionHelper.hasUnsupported(getClass());
+ unsupportedCheck();
if (isCreateCamelContextPerClass) {
createCamelContextPerClass();
@@ -413,6 +413,14 @@ public abstract class CamelTestSupport
}
}
+ /**
+ * 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");