Examples of DoToSpringCamelContextsStrategy


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(MockEndpointsAndSkip.class)) {
           
            final String mockEndpoints = testClass.getAnnotation(
                    MockEndpointsAndSkip.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

        } else {
            shutdownTimeout = 10;
            shutdownTimeUnit = TimeUnit.SECONDS;
        }
       
        CamelSpringTestHelper.doToSpringCamelContexts(context, new DoToSpringCamelContextsStrategy() {
           
            @Override
            public void execute(String contextName, SpringCamelContext camelContext)
                throws Exception {
                LOG.info("Setting shutdown timeout to [{} {}] on CamelContext with name [{}].", new Object[]{shutdownTimeout, shutdownTimeUnit, contextName});
View Full Code Here

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

     * @param testClass the test class being executed
     */
    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 {
                    LOG.info("Enabling auto mocking of endpoints matching pattern [{}] on CamelContext with name [{}].", mockEndpoints, contextName);
View Full Code Here

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

     * @param testClass the test class being executed
     */
    protected void handleMockEndpointsAndSkip(GenericApplicationContext context, Class<?> testClass) throws Exception {
        if (testClass.isAnnotationPresent(MockEndpointsAndSkip.class)) {
            final String mockEndpoints = testClass.getAnnotation(MockEndpointsAndSkip.class).value();
            CamelSpringTestHelper.doToSpringCamelContexts(context, new DoToSpringCamelContextsStrategy() {
               
                @Override
                public void execute(String contextName, SpringCamelContext camelContext)
                    throws Exception {
                    LOG.info("Enabling auto mocking and skipping of endpoints matching pattern [{}] on CamelContext with name [{}].", mockEndpoints, contextName);
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 {
                    LOG.info("Enabling lazy loading of type converters on CamelContext with name [{}].", contextName);
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.