You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2023/02/15 08:46:46 UTC
[camel] branch main updated: CAMEL-19047 CamelTestSupport (junit5) - some checks does not work with ContextPerClass (#9346)
This is an automated email from the ASF dual-hosted git repository.
davsclaus 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 1df9912a4df CAMEL-19047 CamelTestSupport (junit5) - some checks does not work with ContextPerClass (#9346)
1df9912a4df is described below
commit 1df9912a4df774b91d2db34de8209000fda599f7
Author: JiriOndrusek <on...@gmail.com>
AuthorDate: Wed Feb 15 09:46:38 2023 +0100
CAMEL-19047 CamelTestSupport (junit5) - some checks does not work with ContextPerClass (#9346)
---
.../src/main/java/org/apache/camel/test/junit5/CamelTestSupport.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
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 e8532b07797..97e3a2833b7 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
@@ -347,6 +347,9 @@ public abstract class CamelTestSupport
LOG.info("Testing: {} ({})", currentTestName, getClass().getName());
LOG.info("********************************************************************************");
+ doSpringBootCheck();
+ doQuarkusCheck();
+
if (isCreateCamelContextPerClass()) {
INSTANCE.set(this);
AtomicInteger v = TESTS.get();
@@ -370,8 +373,6 @@ public abstract class CamelTestSupport
}
} else {
// test is per test so always setup
- doSpringBootCheck();
- doQuarkusCheck();
setupResources();
doPreSetup();
doSetUp();