[ 
https://issues.apache.org/jira/browse/CAMEL-11490?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16071375#comment-16071375
 ] 

Claus Ibsen commented on CAMEL-11490:
-------------------------------------

You can now use that from unit test, such as
{code}
@RunWith(CamelSpringBootRunner.class)
@SpringBootApplication()
@SpringBootTest(classes = FooTest.class,
    properties = {"camel.springboot.javaRoutesFilter=Foo*"})
public class FooTest {
{code}

By using the new camel.springboot.javaRoutesFilter where you can specify a 
pattern to include which route builder classes (using their simple name).

> camel-spring-boot - Make it easy to filter Java RoutesBuilder from properties
> -----------------------------------------------------------------------------
>
>                 Key: CAMEL-11490
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11490
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-spring-boot
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.20.0
>
>
> Sometimes you may have multiple route builders in an app, and you may want to 
> be able to only  include one of them, and want to be able to configure this 
> via configuration properties / env variables instead of having to do source 
> code changes.
> This can also be used from unit testing to make it easier to select with 
> route builders to test.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to