Package org.apache.camel.model

Examples of org.apache.camel.model.RouteDefinition.from()


    @Test
    public void testMarshalToText() throws Exception {
        String text = FileCopyUtils.copyToString(new FileReader(new File(getBaseDir(), "src/test/resources/routes.xml")));

        RouteDefinition route = new RouteDefinition();
        route.from("seda:new.in").to("seda:new.out");

        String actual = tool.marshalToText(text, Arrays.asList(route));
        System.out.println("Got " + actual);

        assertTrue("Missing seda:new.in for: " + actual, actual.contains("seda:new.in"));
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.