You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2017/07/01 19:26:00 UTC

[jira] [Commented] (CAMEL-11490) camel-spring-boot - Make it easy to filter Java RoutesBuilder from properties

    [ 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)