Examples of DefaultCamelContext


Examples of org.apache.camel.impl.DefaultCamelContext

        assertTrue(json.contains("\"backoff\": { \"type\": \"integer\""));
    }

    @Test
    public void testComponentDocumentation() throws Exception {
        CamelContext context = new DefaultCamelContext();
        String html = context.getComponentDocumentation("zookeeper");
        assertNotNull("Should have found some auto-generated HTML", html);
    }
View Full Code Here

Examples of org.apache.camel.impl.DefaultCamelContext

        assertTrue(json.contains("\"matchOnUriPrefix\": { \"type\": \"boolean\""));
    }

    @Test
    public void testComponentDocumentation() throws Exception {
        CamelContext context = new DefaultCamelContext();
        String html = context.getComponentDocumentation("servlet");
        assertNotNull("Should have found some auto-generated HTML", html);
    }
View Full Code Here

Examples of org.apache.camel.impl.DefaultCamelContext

        assertTrue(json.contains("\"traceEnabled\": { \"type\": \"boolean\""));
    }

    @Test
    public void testComponentDocumentation() throws Exception {
        CamelContext context = new DefaultCamelContext();
        String html = context.getComponentDocumentation("netty-http");
        assertNotNull("Should have found some auto-generated HTML", html);
    }
View Full Code Here

Examples of org.apache.camel.impl.DefaultCamelContext

        assertTrue(json.contains("\"local\": { \"type\": \"boolean\""));
    }

    @Test
    public void testComponentDocumentation() throws Exception {
        CamelContext context = new DefaultCamelContext();
        String html = context.getComponentDocumentation("elasticsearch");
        assertNotNull("Should have found some auto-generated HTML", html);
        assertTrue("Expected entry for clusterName", html.contains("<td>clusterName</td>"));
        assertTrue("Expected entry for protocolType", html.contains("<td>protocolType</td>"));
    }
View Full Code Here

Examples of org.apache.camel.impl.DefaultCamelContext

    public Exchange doTestSignatureRoute(RouteBuilder builder) throws Exception {
        return doSignatureRouteTest(builder, null, Collections.<String, Object> emptyMap());
    }

    public Exchange doSignatureRouteTest(RouteBuilder builder, Exchange e, Map<String, Object> headers) throws Exception {
        CamelContext context = new DefaultCamelContext();
        try {
            context.addRoutes(builder);
            context.start();

            MockEndpoint mock = context.getEndpoint("mock:result", MockEndpoint.class);
            mock.setExpectedMessageCount(1);

            ProducerTemplate template = context.createProducerTemplate();
            if (e != null) {
                template.send("direct:in", e);
            } else {
                template.sendBodyAndHeaders("direct:in", payload, headers);
            }
            assertMockEndpointsSatisfied();
            return mock.getReceivedExchanges().get(0);
        } finally {
            context.stop();
        }
    }
View Full Code Here

Examples of org.apache.camel.impl.DefaultCamelContext

        assertTrue(json.contains("\"allowDefaultCodec\": { \"type\": \"boolean\""));
    }

    @Test
    public void testComponentDocumentation() throws Exception {
        CamelContext context = new DefaultCamelContext();
        String html = context.getComponentDocumentation("netty");
        assertNotNull("Should have found some auto-generated HTML", html);
    }
View Full Code Here

Examples of org.apache.camel.impl.DefaultCamelContext

        assertTrue(json.contains("\"throwExceptionOnFailure\": { \"type\": \"boolean\""));
    }

    @Test
    public void testComponentDocumentation() throws Exception {
        CamelContext context = new DefaultCamelContext();
        String html = context.getComponentDocumentation("http4");
        assertNotNull("Should have found some auto-generated HTML", html);
    }
View Full Code Here

Examples of org.apache.camel.impl.DefaultCamelContext

        assertTrue(json.contains("\"sessionSupport\": { \"type\": \"boolean\""));
    }

    @Test
    public void testComponentDocumentation() throws Exception {
        CamelContext context = new DefaultCamelContext();
        String html = context.getComponentDocumentation("jetty");
        assertNotNull("Should have found some auto-generated HTML", html);
    }
View Full Code Here

Examples of org.apache.camel.impl.DefaultCamelContext

public class EndpointTest {
    CamelContext context;

    @Before
    public void setUp() throws Exception {
        context = new DefaultCamelContext();
        context.disableJMX();
        context.start();
    }
View Full Code Here

Examples of org.apache.camel.impl.DefaultCamelContext

            // Setup the application context classloader with the bundle classloader
            context.setApplicationContextClassLoader(new BundleDelegatingClassLoader(bundleContext.getBundle()));
            // and make sure the TCCL is our classloader
            Thread.currentThread().setContextClassLoader(context.getApplicationContextClassLoader());
        } else {
            context = new DefaultCamelContext(registry);
        }
        setupPropertiesComponent(context, props, log);
    }
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.