1 package ch.qos.logback.classic.net.mock; 2 3 import java.io.Serializable; 4 import java.util.Enumeration; 5 6 import javax.jms.Destination; 7 import javax.jms.JMSException; 8 import javax.jms.ObjectMessage; 9 10 public class MockObjectMessage implements ObjectMessage { 11 12 Serializable object; 13 14 public Serializable getObject() throws JMSException { 15 return object; 16 } 17 18 public void setObject(Serializable object) throws JMSException { 19 this.object = object; 20 } 21 22 public void acknowledge() throws JMSException { 23 24 25 } 26 27 public void clearBody() throws JMSException { 28 29 30 } 31 32 public void clearProperties() throws JMSException { 33 34 35 } 36 37 public boolean getBooleanProperty(String arg0) throws JMSException { 38 39 return false; 40 } 41 42 public byte getByteProperty(String arg0) throws JMSException { 43 44 return 0; 45 } 46 47 public double getDoubleProperty(String arg0) throws JMSException { 48 49 return 0; 50 } 51 52 public float getFloatProperty(String arg0) throws JMSException { 53 54 return 0; 55 } 56 57 public int getIntProperty(String arg0) throws JMSException { 58 59 return 0; 60 } 61 62 public String getJMSCorrelationID() throws JMSException { 63 64 return null; 65 } 66 67 public byte[] getJMSCorrelationIDAsBytes() throws JMSException { 68 69 return null; 70 } 71 72 public int getJMSDeliveryMode() throws JMSException { 73 74 return 0; 75 } 76 77 public Destination getJMSDestination() throws JMSException { 78 79 return null; 80 } 81 82 public long getJMSExpiration() throws JMSException { 83 84 return 0; 85 } 86 87 public String getJMSMessageID() throws JMSException { 88 89 return null; 90 } 91 92 public int getJMSPriority() throws JMSException { 93 94 return 0; 95 } 96 97 public boolean getJMSRedelivered() throws JMSException { 98 99 return false; 100 } 101 102 public Destination getJMSReplyTo() throws JMSException { 103 104 return null; 105 } 106 107 public long getJMSTimestamp() throws JMSException { 108 109 return 0; 110 } 111 112 public String getJMSType() throws JMSException { 113 114 return null; 115 } 116 117 public long getLongProperty(String arg0) throws JMSException { 118 119 return 0; 120 } 121 122 public Object getObjectProperty(String arg0) throws JMSException { 123 124 return null; 125 } 126 127 public Enumeration getPropertyNames() throws JMSException { 128 129 return null; 130 } 131 132 public short getShortProperty(String arg0) throws JMSException { 133 134 return 0; 135 } 136 137 public String getStringProperty(String arg0) throws JMSException { 138 139 return null; 140 } 141 142 public boolean propertyExists(String arg0) throws JMSException { 143 144 return false; 145 } 146 147 public void setBooleanProperty(String arg0, boolean arg1) throws JMSException { 148 149 150 } 151 152 public void setByteProperty(String arg0, byte arg1) throws JMSException { 153 154 155 } 156 157 public void setDoubleProperty(String arg0, double arg1) throws JMSException { 158 159 160 } 161 162 public void setFloatProperty(String arg0, float arg1) throws JMSException { 163 164 165 } 166 167 public void setIntProperty(String arg0, int arg1) throws JMSException { 168 169 170 } 171 172 public void setJMSCorrelationID(String arg0) throws JMSException { 173 174 175 } 176 177 public void setJMSCorrelationIDAsBytes(byte[] arg0) throws JMSException { 178 179 180 } 181 182 public void setJMSDeliveryMode(int arg0) throws JMSException { 183 184 185 } 186 187 public void setJMSDestination(Destination arg0) throws JMSException { 188 189 190 } 191 192 public void setJMSExpiration(long arg0) throws JMSException { 193 194 195 } 196 197 public void setJMSMessageID(String arg0) throws JMSException { 198 199 200 } 201 202 public void setJMSPriority(int arg0) throws JMSException { 203 204 205 } 206 207 public void setJMSRedelivered(boolean arg0) throws JMSException { 208 209 210 } 211 212 public void setJMSReplyTo(Destination arg0) throws JMSException { 213 214 215 } 216 217 public void setJMSTimestamp(long arg0) throws JMSException { 218 219 220 } 221 222 public void setJMSType(String arg0) throws JMSException { 223 224 225 } 226 227 public void setLongProperty(String arg0, long arg1) throws JMSException { 228 229 230 } 231 232 public void setObjectProperty(String arg0, Object arg1) throws JMSException { 233 234 235 } 236 237 public void setShortProperty(String arg0, short arg1) throws JMSException { 238 239 240 } 241 242 public void setStringProperty(String arg0, String arg1) throws JMSException { 243 244 245 } 246 247 }