[
https://issues.apache.org/jira/browse/CAMEL-10485?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15668530#comment-15668530
]
Chi Kim commented on CAMEL-10485:
---------------------------------
Like you said, JUnit ones work flawlessly, it would be nice to see that
support for TestNG is deprecated in the documentation.
Thank you.
> AbstractCamelTestNGSpringContextTests does not support @UseAdviceWith when
> used with Spring boot
> ------------------------------------------------------------------------------------------------
>
> Key: CAMEL-10485
> URL: https://issues.apache.org/jira/browse/CAMEL-10485
> Project: Camel
> Issue Type: Bug
> Components: camel-test
> Affects Versions: 2.17.3
> Reporter: Chi Kim
> Priority: Minor
>
> CamelContext is always started even with @UseAdviceWith.
> CamelContext is started when camel route bean is refreshed during the Spring
> start up.
> Looks like the CamelSpringBootJUnit4ClassRunner gets around the problem by
> setting
> {code}
> System.setProperty("skipStartingCamelContext", "true");
> {code}
> which is missing in the CamelTestNG version.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)