001/**
002 * Logback: the reliable, generic, fast and flexible logging framework.
003 * Copyright (C) 1999-2015, QOS.ch. All rights reserved.
004 *
005 * This program and the accompanying materials are dual-licensed under
006 * either the terms of the Eclipse Public License v1.0 as published by
007 * the Eclipse Foundation
008 *
009 *   or (per the licensee's choosing)
010 *
011 * under the terms of the GNU Lesser General Public License version 2.1
012 * as published by the Free Software Foundation.
013 */
014package ch.qos.logback.classic.net.mock;
015
016import java.io.Serializable;
017
018import javax.jms.BytesMessage;
019import javax.jms.Destination;
020import javax.jms.JMSException;
021import javax.jms.MapMessage;
022import javax.jms.Message;
023import javax.jms.MessageConsumer;
024import javax.jms.MessageListener;
025import javax.jms.MessageProducer;
026import javax.jms.ObjectMessage;
027import javax.jms.Queue;
028import javax.jms.QueueBrowser;
029import javax.jms.QueueReceiver;
030import javax.jms.QueueSender;
031import javax.jms.QueueSession;
032import javax.jms.StreamMessage;
033import javax.jms.TemporaryQueue;
034import javax.jms.TemporaryTopic;
035import javax.jms.TextMessage;
036import javax.jms.Topic;
037import javax.jms.TopicSubscriber;
038
039public class MockQueueSession implements QueueSession {
040
041    public ObjectMessage createObjectMessage() throws JMSException {
042        return new MockObjectMessage();
043    }
044
045    public QueueSender createSender(Queue queue) throws JMSException {
046        if (queue == null) {
047            return null;
048        }
049        return new MockQueueSender(queue);
050    }
051
052    public QueueBrowser createBrowser(Queue arg0) throws JMSException {
053
054        return null;
055    }
056
057    public QueueBrowser createBrowser(Queue arg0, String arg1) throws JMSException {
058
059        return null;
060    }
061
062    public Queue createQueue(String arg0) throws JMSException {
063
064        return null;
065    }
066
067    public QueueReceiver createReceiver(Queue arg0) throws JMSException {
068
069        return null;
070    }
071
072    public QueueReceiver createReceiver(Queue arg0, String arg1) throws JMSException {
073
074        return null;
075    }
076
077    public TemporaryQueue createTemporaryQueue() throws JMSException {
078
079        return null;
080    }
081
082    public void close() throws JMSException {
083
084    }
085
086    public void commit() throws JMSException {
087
088    }
089
090    public BytesMessage createBytesMessage() throws JMSException {
091
092        return null;
093    }
094
095    public MessageConsumer createConsumer(Destination arg0) throws JMSException {
096
097        return null;
098    }
099
100    public MessageConsumer createConsumer(Destination arg0, String arg1) throws JMSException {
101
102        return null;
103    }
104
105    public MessageConsumer createConsumer(Destination arg0, String arg1, boolean arg2) throws JMSException {
106
107        return null;
108    }
109
110    public TopicSubscriber createDurableSubscriber(Topic arg0, String arg1) throws JMSException {
111
112        return null;
113    }
114
115    public TopicSubscriber createDurableSubscriber(Topic arg0, String arg1, String arg2, boolean arg3) throws JMSException {
116
117        return null;
118    }
119
120    public MapMessage createMapMessage() throws JMSException {
121
122        return null;
123    }
124
125    public Message createMessage() throws JMSException {
126
127        return null;
128    }
129
130    public ObjectMessage createObjectMessage(Serializable arg0) throws JMSException {
131
132        return null;
133    }
134
135    public MessageProducer createProducer(Destination arg0) throws JMSException {
136
137        return null;
138    }
139
140    public StreamMessage createStreamMessage() throws JMSException {
141
142        return null;
143    }
144
145    public TemporaryTopic createTemporaryTopic() throws JMSException {
146
147        return null;
148    }
149
150    public TextMessage createTextMessage() throws JMSException {
151
152        return null;
153    }
154
155    public TextMessage createTextMessage(String arg0) throws JMSException {
156
157        return null;
158    }
159
160    public Topic createTopic(String arg0) throws JMSException {
161
162        return null;
163    }
164
165    public int getAcknowledgeMode() throws JMSException {
166
167        return 0;
168    }
169
170    public MessageListener getMessageListener() throws JMSException {
171
172        return null;
173    }
174
175    public boolean getTransacted() throws JMSException {
176
177        return false;
178    }
179
180    public void recover() throws JMSException {
181
182    }
183
184    public void rollback() throws JMSException {
185
186    }
187
188    public void run() {
189
190    }
191
192    public void setMessageListener(MessageListener arg0) throws JMSException {
193
194    }
195
196    public void unsubscribe(String arg0) throws JMSException {
197
198    }
199
200}