Package org.apache.camel.component.mock

Examples of org.apache.camel.component.mock.MockComponent


    @Override
    protected RouteBuilder createRouteBuilder() throws Exception {
        return new RouteBuilder() {
            @Override
            public void configure() throws Exception {
                context.addComponent("foo", new MockComponent());

                from("direct:start")
                    .to("foo:foo")
                    .to("mock:result");
            }
View Full Code Here


    public static class MyModule extends CamelModuleWithMatchingRoutes {
        @Provides
        @JndiBind("foo")
        MockComponent foo() {
            return new MockComponent();
        }
View Full Code Here

    public static class MyModule extends CamelModuleWithMatchingRoutes {
        @Provides
        @JndiBind("foo")
        MockComponent foo() {
            return new MockComponent();
        }
View Full Code Here

    public static class MyModule extends CamelModuleWithMatchingRoutes {
        @Provides
        @JndiBind("foo")
        MockComponent foo() {
            return new MockComponent();
        }
View Full Code Here

    protected RouteBuilder createRouteBuilder() throws Exception {
        return new RouteBuilder() {
            @Override
            public void configure() throws Exception {
                // simulate ftp/http using mocks
                context.addComponent("ftp", new MockComponent());
                context.addComponent("http", new MockComponent());

                interceptSendToEndpoint("(ftp|http):.*")
                    .to("log:intercept")
                    .to("mock:intercept");

View Full Code Here

    public static class MyModule extends CamelModuleWithMatchingRoutes {
        @Provides
        @JndiBind("foo")
        MockComponent foo() {
            return new MockComponent();
        }
View Full Code Here

    public static class MyModule extends CamelModuleWithMatchingRoutes {
        @Provides
        @JndiBind("foo")
        MockComponent foo() {
            return new MockComponent();
        }
View Full Code Here

    public static class MyModule extends CamelModuleWithMatchingRoutes {
        @Provides
        @JndiBind("foo")
        MockComponent foo() {
            return new MockComponent();
        }
View Full Code Here

    public static class MyModule extends CamelModuleWithMatchingRoutes {
        @Provides
        @JndiBind("foo")
        MockComponent foo() {
            return new MockComponent();
        }
View Full Code Here

    protected Configuration _configuration;

    @Before
    public void startUp() {
        _camelContext = new SwitchYardCamelContextImpl(false);
        _camelContext.addComponent("switchyard", new MockComponent());
        _configuration = mock(Configuration.class);
    }
View Full Code Here

TOP

Related Classes of org.apache.camel.component.mock.MockComponent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.