Examples of expectsAscending()


Examples of org.apache.camel.component.mock.MockEndpoint.expectsAscending()

public class AtomEntrySortTest extends ContextTestSupport {

    public void testSortedEntries() throws Exception {
        MockEndpoint mock = getMockEndpoint("mock:sorted");
        mock.expectsAscending(ExpressionBuilder.beanExpression("myBean", "getPubDate"));
        mock.expectedMessageCount(10);
        mock.assertIsSatisfied();
    }

    public void testUnSortedEntries() throws Exception {
View Full Code Here

Examples of org.apache.camel.component.mock.MockEndpoint.expectsAscending()

        mock.assertIsSatisfied();
    }

    public void testUnSortedEntries() throws Exception {
        MockEndpoint mock = getMockEndpoint("mock:unsorted");
        mock.expectsAscending(ExpressionBuilder.beanExpression("myBean", "getPubDate"));
        mock.expectedMessageCount(10);
        mock.setResultWaitTime(2000L);
        mock.assertIsNotSatisfied(2000L);
    }   
   
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.