1
2
3
4
5
6
7 package org.mule.transport.jms.test;
8
9 import javax.jms.Connection;
10 import javax.jms.JMSException;
11 import javax.jms.QueueConnection;
12 import javax.jms.QueueConnectionFactory;
13
14 public class TestConnectionFactory implements QueueConnectionFactory
15 {
16 private String providerProperty = "NOT_SET";
17 private String connectionFactoryProperty = "NOT_SET";
18 private Object customProperty;
19
20 public Connection createConnection() throws JMSException
21 {
22 return null;
23 }
24
25 public Connection createConnection(String string, String string1) throws JMSException
26 {
27 return null;
28 }
29
30 public String getProviderProperty()
31 {
32 return providerProperty;
33 }
34
35
36
37
38 public void setProviderProperty(final String providerProperty)
39 {
40 throw new IllegalStateException("Should never be called.");
41 }
42
43 public String getConnectionFactoryProperty()
44 {
45 return connectionFactoryProperty;
46 }
47
48
49
50
51 public void setConnectionFactoryProperty(final String connectionFactoryProperty)
52 {
53 this.connectionFactoryProperty = connectionFactoryProperty;
54 }
55
56 public QueueConnection createQueueConnection() throws JMSException
57 {
58 return null;
59 }
60
61 public QueueConnection createQueueConnection(String string, String string1) throws JMSException
62 {
63 return null;
64 }
65
66 public Object getCustomProperty()
67 {
68 return customProperty;
69 }
70
71 public void setCustomProperty(Object custom)
72 {
73 customProperty = custom;
74 }
75 }