camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From meenakshisekar <>
Subject JUnit json
Date Thu, 26 Feb 2015 07:15:51 GMT

I'm starting with camel on Junit for my sample code. Would like to
understand how to implement it for Json based case.

My class looks like this,

public void configure() throws Exception {


the structure of my Junit class looks like this, let me know on what has to
be tested in test(testSendMatchingMessage) 


public class GLEndpointTest extends CamelTestSupport{

    @EndpointInject(uri = "mock:result")
    protected MockEndpoint resultEndpoint;
    @Produce(uri = "direct:start")
    protected ProducerTemplate template;
    public void setup() throws Exception {
     context.addRoutes(new ContentBased());

    protected RouteBuilder createRouteBuilder() {
        return new RouteBuilder() {
            public void configure() {

* @Test
    public void testSendMatchingMessage() throws Exception {


View this message in context:
Sent from the Camel Development mailing list archive at

View raw message