Examples of DoToSpringCamelContextsStrategy


Examples of org.apache.camel.test.spring.CamelSpringTestHelper.DoToSpringCamelContextsStrategy

                skip = false;
            }
        }
       
        if (!skip) {
            CamelSpringTestHelper.doToSpringCamelContexts(context, new DoToSpringCamelContextsStrategy() {
               
                @Override
                public void execute(String contextName,
                        SpringCamelContext camelContext) throws Exception {
                    LOG.info("Starting CamelContext with name [{}].", contextName);
View Full Code Here

Examples of org.apache.camel.test.spring.CamelSpringTestHelper.DoToSpringCamelContextsStrategy

                }
            }
        }
       
        if (breakpoints.size() != 0) {
            CamelSpringTestHelper.doToSpringCamelContexts(context, new DoToSpringCamelContextsStrategy() {
               
                @Override
                public void execute(String contextName, SpringCamelContext camelContext)
                    throws Exception {
                    Debugger debugger = camelContext.getDebugger();
View Full Code Here

Examples of org.apache.camel.test.spring.CamelSpringTestHelper.DoToSpringCamelContextsStrategy

            }
        }
       
        if (breakpoints.size() != 0) {
       
            CamelSpringTestHelper.doToSpringCamelContexts(context, new DoToSpringCamelContextsStrategy() {
               
                @Override
                public void execute(String contextName, SpringCamelContext camelContext)
                    throws Exception {
                   
View Full Code Here

Examples of org.apache.camel.test.spring.CamelSpringTestHelper.DoToSpringCamelContextsStrategy

        } else {
            shutdownTimeout = 10;
            shutdownTimeUnit = TimeUnit.SECONDS;
        }
       
        CamelSpringTestHelper.doToSpringCamelContexts(context, new DoToSpringCamelContextsStrategy() {
           
            @Override
            public void execute(String contextName, SpringCamelContext camelContext)
                throws Exception {
               
View Full Code Here

Examples of org.apache.camel.test.spring.CamelSpringTestHelper.DoToSpringCamelContextsStrategy

    protected void handleMockEndpoints(GenericApplicationContext context, Class<?> testClass) throws Exception {
        if (testClass.isAnnotationPresent(MockEndpoints.class)) {
           
            final String mockEndpoints = testClass.getAnnotation(
                    MockEndpoints.class).value();
            CamelSpringTestHelper.doToSpringCamelContexts(context, new DoToSpringCamelContextsStrategy() {
               
                @Override
                public void execute(String contextName, SpringCamelContext camelContext)
                    throws Exception {
                   
View Full Code Here

Examples of org.apache.camel.test.spring.CamelSpringTestHelper.DoToSpringCamelContextsStrategy

    protected void handleMockEndpointsAndSkip(GenericApplicationContext context, Class<?> testClass) throws Exception {
        if (testClass.isAnnotationPresent(MockEndpoints.class)) {
           
            final String mockEndpoints = testClass.getAnnotation(
                    MockEndpoints.class).value();
            CamelSpringTestHelper.doToSpringCamelContexts(context, new DoToSpringCamelContextsStrategy() {
               
                @Override
                public void execute(String contextName, SpringCamelContext camelContext)
                    throws Exception {
                   
View Full Code Here

Examples of org.apache.camel.test.spring.CamelSpringTestHelper.DoToSpringCamelContextsStrategy

        } else {
            lazy = true;
        }
        
        if (lazy) {
            CamelSpringTestHelper.doToSpringCamelContexts(context, new DoToSpringCamelContextsStrategy() {
               
                @Override
                public void execute(String contextName, SpringCamelContext camelContext)
                    throws Exception {
                   
View Full Code Here

Examples of org.apache.camel.test.spring.CamelSpringTestHelper.DoToSpringCamelContextsStrategy

                skip = false;
            }
        }
       
        if (!skip) {
            CamelSpringTestHelper.doToSpringCamelContexts(context, new DoToSpringCamelContextsStrategy() {
               
                @Override
                public void execute(String contextName,
                        SpringCamelContext camelContext) throws Exception {
                    LOG.info("Starting CamelContext with name [{}].", contextName);
View Full Code Here

Examples of org.apache.camel.test.spring.CamelSpringTestHelper.DoToSpringCamelContextsStrategy

                }
            }
        }
       
        if (breakpoints.size() != 0) {
            CamelSpringTestHelper.doToSpringCamelContexts(context, new DoToSpringCamelContextsStrategy() {
               
                public void execute(String contextName, SpringCamelContext camelContext)
                    throws Exception {
                    Debugger debugger = camelContext.getDebugger();
                    if (debugger == null) {
View Full Code Here

Examples of org.apache.camel.test.spring.CamelSpringTestHelper.DoToSpringCamelContextsStrategy

        } else {
            shutdownTimeout = 10;
            shutdownTimeUnit = TimeUnit.SECONDS;
        }
       
        CamelSpringTestHelper.doToSpringCamelContexts(context, new DoToSpringCamelContextsStrategy() {
           
            public void execute(String contextName, SpringCamelContext camelContext)
                throws Exception {
                logger.info("Setting shutdown timeout to [{} {}] on CamelContext with name [{}].", new Object[]{shutdownTimeout, shutdownTimeUnit, contextName});
                camelContext.getShutdownStrategy().setTimeout(shutdownTimeout);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.