From 06d6e08f48d735f2772ef8703f39da1852a336ab Mon Sep 17 00:00:00 2001 From: Bosanac Dejan Date: Tue, 5 Oct 2010 13:51:55 +0000 Subject: [PATCH] https://issues.apache.org/activemq/browse/AMQ-2954 - test scheduling after restart git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1004640 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/activemq/broker/scheduler/JmsSchedulerTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/activemq-core/src/test/java/org/apache/activemq/broker/scheduler/JmsSchedulerTest.java b/activemq-core/src/test/java/org/apache/activemq/broker/scheduler/JmsSchedulerTest.java index a7aac198a0..62a9ad36c1 100644 --- a/activemq-core/src/test/java/org/apache/activemq/broker/scheduler/JmsSchedulerTest.java +++ b/activemq-core/src/test/java/org/apache/activemq/broker/scheduler/JmsSchedulerTest.java @@ -205,6 +205,12 @@ public class JmsSchedulerTest extends EmbeddedBrokerTestSupport { MessageConsumer consumer = session.createConsumer(destination); Message msg = consumer.receive(5000); assertNotNull("Didn't receive the message", msg); + + //send another message + producer = session.createProducer(destination); + message.setLongProperty(ScheduledMessage.AMQ_SCHEDULED_DELAY, time); + producer.send(message); + producer.close(); } @Override