RE: Testing with JUnit Spring Boot

2025-01-27 Thread Jan Bares, WOOD & Co.
> -Original Message- > From: Steve Huston > Sent: Monday, January 27, 2025 4:03 PM > To: users@camel.apache.org > Subject: RE: Testing with JUnit Spring Boot > > If you want to test a route(s) in isolation then, yes, you can avoid the > Spring tricks > and create the con

RE: Testing with JUnit Spring Boot

2025-01-27 Thread Jan Bares, WOOD & Co.
e- > From: Claus Ibsen > Sent: Monday, January 27, 2025 3:53 PM > To: users@camel.apache.org > Subject: Re: Testing with JUnit Spring Boot > > Hi > > Try the @ExcludeRoutes annotation > > On Mon, Jan 27, 2025 at 3:20 PM Jan Bares, WOOD & Co. > wrote: > &g

RE: Testing with JUnit Spring Boot

2025-01-27 Thread Steve Huston
M > To: users@camel.apache.org > Subject: RE: Testing with JUnit Spring Boot > > Thank you. But without @SpringBootTest how should I code my > createRouteBuilder() method? I need to reuse my RouteXYBuilder class. This > class is created by Spring DI. Or do I have to create all the co

Re: Testing with JUnit Spring Boot

2025-01-27 Thread Claus Ibsen
Hi Try the @ExcludeRoutes annotation On Mon, Jan 27, 2025 at 3:20 PM Jan Bares, WOOD & Co. wrote: > Hi, > > I need some help or at least pointer to samples on how to write JUnit > tests for Camel 4.6 Spring Boot application. I don't know how to test > single route in isolation without starting

RE: Testing with JUnit Spring Boot

2025-01-27 Thread Jan Bares, WOOD & Co.
; From: Steve Huston > Sent: Monday, January 27, 2025 3:32 PM > To: users@camel.apache.org > Subject: RE: Testing with JUnit Spring Boot > > Hi Jan, > > At a high level, take away the @CamelSpringBootTest and @SpringBootTest; > those are what is causing the whole test con

RE: Testing with JUnit Spring Boot

2025-01-27 Thread Steve Huston
-Steve > -Original Message- > From: Jan Bares, WOOD & Co. > Sent: Monday, January 27, 2025 9:18 AM > To: users@camel.apache.org > Subject: Testing with JUnit Spring Boot > > Hi, > > I need some help or at least pointer to samples on how to write JUnit tests

Testing with JUnit Spring Boot

2025-01-27 Thread Jan Bares, WOOD & Co.
Hi, I need some help or at least pointer to samples on how to write JUnit tests for Camel 4.6 Spring Boot application. I don't know how to test single route in isolation without starting all the other (autostarted) routes. Our application has many routes that look like this @Configuration @Com