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
commit 3d2631bca88237a6c0b629c21f6adb5e7c479bde Author: Otavio Rodolfo Piske <angusyo...@gmail.com> AuthorDate: Sun Feb 19 11:12:29 2023 +0100 CAMEL-15105: fixed usages of getExtension in CamelTestSupport --- .../src/main/java/org/apache/camel/test/junit5/CamelTestSupport.java | 4 ++-- 1 file changed, 2 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 62ec5506c0a..7041588deb6 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 @@ -690,9 +690,9 @@ public abstract class CamelTestSupport boolean spring = hasClassAnnotation("org.springframework.boot.test.context.SpringBootTest", "org.springframework.context.annotation.ComponentScan"); if (!spring) { - context.getExtension(ExtendedCamelContext.class).getBeanPostProcessor().postProcessBeforeInitialization(this, + context.getCamelContextExtension().getBeanPostProcessor().postProcessBeforeInitialization(this, getClass().getName()); - context.getExtension(ExtendedCamelContext.class).getBeanPostProcessor().postProcessAfterInitialization(this, + context.getCamelContextExtension().getBeanPostProcessor().postProcessAfterInitialization(this, getClass().getName()); } }