1 package ch.qos.logback.classic.net.mock; 2 3 import java.io.Serializable; 4 5 import javax.jms.BytesMessage; 6 import javax.jms.Destination; 7 import javax.jms.JMSException; 8 import javax.jms.MapMessage; 9 import javax.jms.Message; 10 import javax.jms.MessageConsumer; 11 import javax.jms.MessageListener; 12 import javax.jms.MessageProducer; 13 import javax.jms.ObjectMessage; 14 import javax.jms.Queue; 15 import javax.jms.QueueBrowser; 16 import javax.jms.StreamMessage; 17 import javax.jms.TemporaryQueue; 18 import javax.jms.TemporaryTopic; 19 import javax.jms.TextMessage; 20 import javax.jms.Topic; 21 import javax.jms.TopicPublisher; 22 import javax.jms.TopicSession; 23 import javax.jms.TopicSubscriber; 24 25 public class MockTopicSession implements TopicSession { 26 27 public ObjectMessage createObjectMessage() throws JMSException { 28 return new MockObjectMessage(); 29 } 30 31 public TopicPublisher createPublisher(Topic topic) throws JMSException { 32 if (topic == null) { 33 return null; 34 } 35 return new MockTopicPublisher(topic); 36 } 37 38 39 public TopicSubscriber createDurableSubscriber(Topic arg0, String arg1) throws JMSException { 40 return null; 41 } 42 43 public TopicSubscriber createDurableSubscriber(Topic arg0, String arg1, String arg2, boolean arg3) throws JMSException { 44 return null; 45 } 46 47 public TopicSubscriber createSubscriber(Topic arg0) throws JMSException { 48 return null; 49 } 50 51 public TopicSubscriber createSubscriber(Topic arg0, String arg1, boolean arg2) throws JMSException { 52 return null; 53 } 54 55 public TemporaryTopic createTemporaryTopic() throws JMSException { 56 return null; 57 } 58 59 public Topic createTopic(String arg0) throws JMSException { 60 return null; 61 } 62 63 public void unsubscribe(String arg0) throws JMSException { 64 65 } 66 67 public void close() throws JMSException { 68 69 } 70 71 public void commit() throws JMSException { 72 73 } 74 75 public QueueBrowser createBrowser(Queue arg0) throws JMSException { 76 77 return null; 78 } 79 80 public QueueBrowser createBrowser(Queue arg0, String arg1) throws JMSException { 81 82 return null; 83 } 84 85 public BytesMessage createBytesMessage() throws JMSException { 86 87 return null; 88 } 89 90 public MessageConsumer createConsumer(Destination arg0) throws JMSException { 91 92 return null; 93 } 94 95 public MessageConsumer createConsumer(Destination arg0, String arg1) throws JMSException { 96 97 return null; 98 } 99 100 public MessageConsumer createConsumer(Destination arg0, String arg1, boolean arg2) throws JMSException { 101 102 return null; 103 } 104 105 public MapMessage createMapMessage() throws JMSException { 106 107 return null; 108 } 109 110 public Message createMessage() throws JMSException { 111 112 return null; 113 } 114 115 public ObjectMessage createObjectMessage(Serializable arg0) throws JMSException { 116 117 return null; 118 } 119 120 public MessageProducer createProducer(Destination arg0) throws JMSException { 121 122 return null; 123 } 124 125 public Queue createQueue(String arg0) throws JMSException { 126 127 return null; 128 } 129 130 public StreamMessage createStreamMessage() throws JMSException { 131 132 return null; 133 } 134 135 public TemporaryQueue createTemporaryQueue() throws JMSException { 136 137 return null; 138 } 139 140 public TextMessage createTextMessage() throws JMSException { 141 142 return null; 143 } 144 145 public TextMessage createTextMessage(String arg0) throws JMSException { 146 147 return null; 148 } 149 150 public int getAcknowledgeMode() throws JMSException { 151 152 return 0; 153 } 154 155 public MessageListener getMessageListener() throws JMSException { 156 157 return null; 158 } 159 160 public boolean getTransacted() throws JMSException { 161 162 return false; 163 } 164 165 public void recover() throws JMSException { 166 167 168 } 169 170 public void rollback() throws JMSException { 171 172 173 } 174 175 public void run() { 176 177 178 } 179 180 public void setMessageListener(MessageListener arg0) throws JMSException { 181 182 183 } 184 185 }