Package org.milyn.smooks.camel

Examples of org.milyn.smooks.camel.Coordinate


        });
        context.start();
        sendBody(fromEndpoint, new StringSource("<coords><coord x='1' y='2' /><coord x='3' y='4' /></coords>"));

        final List<Coordinate> bodies = getBodies(getMockEndpoint(toEndpoint).getExchanges());
        assertThat(bodies, hasItems(new Coordinate(1, 2), new Coordinate(3, 4)));
    }
View Full Code Here


        });
        context.start();
        sendBody(fromEndpoint, new StringSource("<coords><coord x='1' y='2' /><coord x='300' y='400' /></coords>"));

        final Message messageB = getExchange(getMockEndpoint("mock:b"));
        assertThat((Coordinate) messageB.getBody(), is(new Coordinate(1, 2)));

        final Message messageC = getExchange(getMockEndpoint("mock:c"));
        assertThat((Coordinate) messageC.getBody(), is(new Coordinate(300, 400)));
        assertThat(messageB.getHeader(CORRELATION_ID), is(equalTo(messageC.getHeader(CORRELATION_ID))));
    }
View Full Code Here

            public void process(Exchange exchange) throws Exception {
                exchange.getIn().setBody(new StringSource("<coord x='111' y='222' />"));
            }
        });
       
        Coordinate coord = response.getOut().getBody(Coordinate.class);
       
        assertEquals(111, coord.getX());
        assertEquals(222, coord.getY());
    }
View Full Code Here

TOP

Related Classes of org.milyn.smooks.camel.Coordinate

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.