Re: camel-test-spring-junit5 @CamelSpringBootTest error

2025-08-05 Thread j_b_s34
Hi Federico, I looked into it a bit more and realized the issue was due to autowiring the Camel context through the constructor of the test class. https://gist.github.com/0x6A75626172/c7aa6c1c925087a11fa0f836dd6add76 When I autowire the fields directly like your reproducer it also works for me. T

Re: camel-test-spring-junit5 @CamelSpringBootTest error

2025-07-31 Thread Federico Mariani
Hi Jubar, I think I reproduced a similar scenario, and the test is successful, https://gist.github.com/Croway/24ba7620d52ed528aa13e13c70678e25 can you share a reproducer? in particular, without the DirtiesContext, the 2nd test fails on the first assertion, due to Camel Context already started, oth

camel-test-spring-junit5 @CamelSpringBootTest error

2025-07-31 Thread j_b_s34
Hi everyone, is @CamelSpringBootTest incompatible with the combination of @DirtiesContext(classMode = ClassMode.AFTER_EACH_TEST_METHOD) and @UseAdviceWith? Only my first test method is executed successful. The methods after it fail because the camel context starts immediately before the adviceW