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 javax.jms.ConnectionConsumer;
017import javax.jms.ConnectionMetaData;
018import javax.jms.Destination;
019import javax.jms.ExceptionListener;
020import javax.jms.JMSException;
021import javax.jms.Queue;
022import javax.jms.QueueConnection;
023import javax.jms.QueueSession;
024import javax.jms.ServerSessionPool;
025import javax.jms.Session;
026import javax.jms.Topic;
027
028public class MockQueueConnection implements QueueConnection {
029
030    MockQueueSession session = new MockQueueSession();
031
032    public QueueSession createQueueSession(boolean arg0, int arg1) throws JMSException {
033        return session;
034    }
035
036    public ConnectionConsumer createConnectionConsumer(Queue arg0, String arg1, ServerSessionPool arg2, int arg3) throws JMSException {
037
038        return null;
039    }
040
041    public void close() throws JMSException {
042
043    }
044
045    public ConnectionConsumer createConnectionConsumer(Destination arg0, String arg1, ServerSessionPool arg2, int arg3) throws JMSException {
046
047        return null;
048    }
049
050    public ConnectionConsumer createDurableConnectionConsumer(Topic arg0, String arg1, String arg2, ServerSessionPool arg3, int arg4) throws JMSException {
051
052        return null;
053    }
054
055    public Session createSession(boolean arg0, int arg1) throws JMSException {
056
057        return null;
058    }
059
060    public String getClientID() throws JMSException {
061
062        return null;
063    }
064
065    public ExceptionListener getExceptionListener() throws JMSException {
066
067        return null;
068    }
069
070    public ConnectionMetaData getMetaData() throws JMSException {
071
072        return null;
073    }
074
075    public void setClientID(String arg0) throws JMSException {
076
077    }
078
079    public void setExceptionListener(ExceptionListener arg0) throws JMSException {
080
081    }
082
083    public void start() throws JMSException {
084
085    }
086
087    public void stop() throws JMSException {
088
089    }
090
091}