Package org.activemq.spring

Examples of org.activemq.spring.TestingConsumer.waitForMessagesToArrive()


            logger.info("Sending " + text);
            sendMessage(text);
        }

        TestingConsumer consumer = (TestingConsumer) applicationContext.getBean("consumerBean");
        consumer.waitForMessagesToArrive(messageCount);

        List list = consumer.flushMessages();
        assertEquals("Message count: " + list, messageCount, list.size());

        System.out.println("Received all: " + list.size() + " messages");
View Full Code Here


        System.out.println("message sent on: " + destination + " of type: " + destination.getClass());


        TestingConsumer consumer = (TestingConsumer) applicationContext.getBean("echoBean");
        consumer.waitForMessagesToArrive(number);
        long stop = System.currentTimeMillis();
        System.err.println("Time to send/receive " + number + " messages: " + (stop - start) + " ms");
        List list = consumer.flushMessages();
        assertEquals("Message count: " + list, number, list.size());
       
View Full Code Here

            logger.info("Sending " + text);
            sendMessage(text);
        }

        TestingConsumer consumer = (TestingConsumer) applicationContext.getBean("consumerBean");
        consumer.waitForMessagesToArrive(messageCount);

        List list = consumer.flushMessages();
        assertEquals("Message count: " + list, messageCount, list.size());

        System.out.println("Received all: " + list.size() + " messages");
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.