1   package ch.qos.logback.classic.net.mock;
2   
3   import javax.jms.ConnectionConsumer;
4   import javax.jms.ConnectionMetaData;
5   import javax.jms.Destination;
6   import javax.jms.ExceptionListener;
7   import javax.jms.JMSException;
8   import javax.jms.ServerSessionPool;
9   import javax.jms.Session;
10  import javax.jms.Topic;
11  import javax.jms.TopicConnection;
12  import javax.jms.TopicSession;
13  
14  public class MockTopicConnection implements TopicConnection {
15  
16    MockTopicSession session = new MockTopicSession();
17    
18    public TopicSession createTopicSession(boolean arg0, int arg1) throws JMSException {
19      return session;
20    }
21    
22    public ConnectionConsumer createConnectionConsumer(Topic arg0, String arg1, ServerSessionPool arg2, int arg3) throws JMSException {
23      
24      return null;
25    }
26  
27    public ConnectionConsumer createDurableConnectionConsumer(Topic arg0, String arg1, String arg2, ServerSessionPool arg3, int arg4) throws JMSException {
28      
29      return null;
30    }
31  
32    public void close() throws JMSException {
33      
34      
35    }
36  
37    public ConnectionConsumer createConnectionConsumer(Destination arg0, String arg1, ServerSessionPool arg2, int arg3) throws JMSException {
38      
39      return null;
40    }
41  
42    public Session createSession(boolean arg0, int arg1) throws JMSException {
43      
44      return null;
45    }
46  
47    public String getClientID() throws JMSException {
48      
49      return null;
50    }
51  
52    public ExceptionListener getExceptionListener() throws JMSException {
53      
54      return null;
55    }
56  
57    public ConnectionMetaData getMetaData() throws JMSException {
58      
59      return null;
60    }
61  
62    public void setClientID(String arg0) throws JMSException {
63      
64      
65    }
66  
67    public void setExceptionListener(ExceptionListener arg0) throws JMSException {
68      
69      
70    }
71  
72    public void start() throws JMSException {
73      
74      
75    }
76  
77    public void stop() throws JMSException {
78      
79      
80    }
81  
82  }