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