Package org.apache.camel.component.mock

Examples of org.apache.camel.component.mock.AssertionClause.body()


        resultEndpoint.expectedMessageCount(1);
       
        AssertionClause firstMessageExpectations = resultEndpoint.message(0);
        firstMessageExpectations.header("journal").isEqualTo("activemq.journal:target/test.a");
        firstMessageExpectations.header("location").isNotNull();
        firstMessageExpectations.body().isInstanceOf(ByteSequence.class);

        template.sendBody("direct:in", payload);

        resultEndpoint.assertIsSatisfied();
View Full Code Here


        resultEndpoint.expectedMessageCount(1);
       
        AssertionClause firstMessageExpectations = resultEndpoint.message(0);
        firstMessageExpectations.header("journal").isEqualTo("activemq.journal://target/test.a");
        firstMessageExpectations.header("location").isNotNull();
        firstMessageExpectations.body().isInstanceOf(ByteSequence.class);

        template.sendBody("direct:in", payload);

        resultEndpoint.assertIsSatisfied();
View Full Code Here

        resultEndpoint.expectedMessageCount(1);
       
        AssertionClause firstMessageExpectations = resultEndpoint.message(0);
        firstMessageExpectations.header("journal").isEqualTo("activemq.journal://target/test.a");
        firstMessageExpectations.header("location").isNotNull();
        firstMessageExpectations.body().isInstanceOf(ByteSequence.class);

        template.sendBody("direct:in", payload);

        resultEndpoint.assertIsSatisfied();
View Full Code Here

        resultEndpoint.expectedMessageCount(1);
       
        AssertionClause firstMessageExpectations = resultEndpoint.message(0);
        firstMessageExpectations.header("journal").isEqualTo("activemq.journal://target/test.a");
        firstMessageExpectations.header("location").isNotNull();
        firstMessageExpectations.body().isInstanceOf(ByteSequence.class);

        template.sendBody("direct:in", payload);

        resultEndpoint.assertIsSatisfied();
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.