01: package com.mockrunner.mock.jms;
02:
03: import javax.jms.JMSException;
04: import javax.jms.TemporaryQueue;
05:
06: /**
07: * Mock implementation of JMS <code>TemporaryQueue</code>.
08: */
09: public class MockTemporaryQueue extends MockQueue implements
10: TemporaryQueue {
11: private boolean deleted;
12:
13: public MockTemporaryQueue() {
14: super ("TemporaryQueue");
15: deleted = false;
16: }
17:
18: /**
19: * Returns if this temporary queue is deleted.
20: * @return <code>true</code> if this queue is deleted
21: */
22: public boolean isDeleted() {
23: return deleted;
24: }
25:
26: public void delete() throws JMSException {
27: deleted = true;
28: }
29: }
|