mirror of https://github.com/apache/activemq.git
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
This commit is contained in:
parent
72b8572303
commit
06d6e08f48
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue