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