1 package com.github.smokestack.jca.cci;
2
3 import javax.resource.cci.ResourceAdapterMetaData;
4
5 import org.apache.commons.lang.builder.ReflectionToStringBuilder;
6 import org.apache.commons.lang.builder.ToStringStyle;
7
8 import com.github.smokestack.exception.NeedsMockDefinitionException;
9
10 public class MockResourceAdapterMetaData implements ResourceAdapterMetaData {
11
12 public MockResourceAdapterMetaData(){
13 }
14
15
16
17
18 public String getAdapterName() {
19 return _getAdapterName();
20 }
21
22 public String _getAdapterName() {
23 throw new NeedsMockDefinitionException();
24 }
25
26
27
28
29 public String getAdapterShortDescription() {
30 return _getAdapterShortDescription();
31 }
32
33 public String _getAdapterShortDescription() {
34 throw new NeedsMockDefinitionException();
35 }
36
37
38
39
40 public String getAdapterVendorName() {
41 return _getAdapterVendorName();
42 }
43
44 public String _getAdapterVendorName() {
45 throw new NeedsMockDefinitionException();
46 }
47
48
49
50
51 public String getAdapterVersion() {
52 return _getAdapterVersion();
53 }
54
55 public String _getAdapterVersion() {
56 throw new NeedsMockDefinitionException();
57 }
58
59
60
61
62 public String[] getInteractionSpecsSupported() {
63 return _getInteractionSpecsSupported();
64 }
65
66 public String[] _getInteractionSpecsSupported() {
67 throw new NeedsMockDefinitionException();
68 }
69
70
71
72
73 public String getSpecVersion() {
74 return _getSpecVersion();
75 }
76
77 public String _getSpecVersion() {
78 throw new NeedsMockDefinitionException();
79 }
80
81
82
83
84 public boolean supportsExecuteWithInputAndOutputRecord() {
85 return _supportsExecuteWithInputAndOutputRecord();
86 }
87
88 public boolean _supportsExecuteWithInputAndOutputRecord() {
89 throw new NeedsMockDefinitionException();
90 }
91
92
93
94
95 public boolean supportsExecuteWithInputRecordOnly() {
96 return _supportsExecuteWithInputRecordOnly();
97 }
98
99 public boolean _supportsExecuteWithInputRecordOnly() {
100 throw new NeedsMockDefinitionException();
101 }
102
103
104
105
106 public boolean supportsLocalTransactionDemarcation() {
107 return _supportsLocalTransactionDemarcation();
108 }
109
110 public boolean _supportsLocalTransactionDemarcation() {
111 throw new NeedsMockDefinitionException();
112 }
113
114 public String toString(){
115 return ReflectionToStringBuilder.toString(this, ToStringStyle.MULTI_LINE_STYLE);
116 }
117 }