001/** 002 * Logback: the reliable, generic, fast and flexible logging framework. 003 * Copyright (C) 1999-2015, QOS.ch. All rights reserved. 004 * 005 * This program and the accompanying materials are dual-licensed under 006 * either the terms of the Eclipse Public License v1.0 as published by 007 * the Eclipse Foundation 008 * 009 * or (per the licensee's choosing) 010 * 011 * under the terms of the GNU Lesser General Public License version 2.1 012 * as published by the Free Software Foundation. 013 */ 014package ch.qos.logback.classic.net.mock; 015 016import java.io.Serializable; 017import java.util.Enumeration; 018 019import javax.jms.Destination; 020import javax.jms.JMSException; 021import javax.jms.ObjectMessage; 022 023public class MockObjectMessage implements ObjectMessage { 024 025 Serializable object; 026 027 public Serializable getObject() throws JMSException { 028 return object; 029 } 030 031 public void setObject(Serializable object) throws JMSException { 032 this.object = object; 033 } 034 035 public void acknowledge() throws JMSException { 036 037 } 038 039 public void clearBody() throws JMSException { 040 041 } 042 043 public void clearProperties() throws JMSException { 044 045 } 046 047 public boolean getBooleanProperty(String arg0) throws JMSException { 048 049 return false; 050 } 051 052 public byte getByteProperty(String arg0) throws JMSException { 053 054 return 0; 055 } 056 057 public double getDoubleProperty(String arg0) throws JMSException { 058 059 return 0; 060 } 061 062 public float getFloatProperty(String arg0) throws JMSException { 063 064 return 0; 065 } 066 067 public int getIntProperty(String arg0) throws JMSException { 068 069 return 0; 070 } 071 072 public String getJMSCorrelationID() throws JMSException { 073 074 return null; 075 } 076 077 public byte[] getJMSCorrelationIDAsBytes() throws JMSException { 078 079 return null; 080 } 081 082 public int getJMSDeliveryMode() throws JMSException { 083 084 return 0; 085 } 086 087 public Destination getJMSDestination() throws JMSException { 088 089 return null; 090 } 091 092 public long getJMSExpiration() throws JMSException { 093 094 return 0; 095 } 096 097 public String getJMSMessageID() throws JMSException { 098 099 return null; 100 } 101 102 public int getJMSPriority() throws JMSException { 103 104 return 0; 105 } 106 107 public boolean getJMSRedelivered() throws JMSException { 108 109 return false; 110 } 111 112 public Destination getJMSReplyTo() throws JMSException { 113 114 return null; 115 } 116 117 public long getJMSTimestamp() throws JMSException { 118 119 return 0; 120 } 121 122 public String getJMSType() throws JMSException { 123 124 return null; 125 } 126 127 public long getLongProperty(String arg0) throws JMSException { 128 129 return 0; 130 } 131 132 public Object getObjectProperty(String arg0) throws JMSException { 133 134 return null; 135 } 136 137 public Enumeration getPropertyNames() throws JMSException { 138 139 return null; 140 } 141 142 public short getShortProperty(String arg0) throws JMSException { 143 144 return 0; 145 } 146 147 public String getStringProperty(String arg0) throws JMSException { 148 149 return null; 150 } 151 152 public boolean propertyExists(String arg0) throws JMSException { 153 154 return false; 155 } 156 157 public void setBooleanProperty(String arg0, boolean arg1) throws JMSException { 158 159 } 160 161 public void setByteProperty(String arg0, byte arg1) throws JMSException { 162 163 } 164 165 public void setDoubleProperty(String arg0, double arg1) throws JMSException { 166 167 } 168 169 public void setFloatProperty(String arg0, float arg1) throws JMSException { 170 171 } 172 173 public void setIntProperty(String arg0, int arg1) throws JMSException { 174 175 } 176 177 public void setJMSCorrelationID(String arg0) throws JMSException { 178 179 } 180 181 public void setJMSCorrelationIDAsBytes(byte[] arg0) throws JMSException { 182 183 } 184 185 public void setJMSDeliveryMode(int arg0) throws JMSException { 186 187 } 188 189 public void setJMSDestination(Destination arg0) throws JMSException { 190 191 } 192 193 public void setJMSExpiration(long arg0) throws JMSException { 194 195 } 196 197 public void setJMSMessageID(String arg0) throws JMSException { 198 199 } 200 201 public void setJMSPriority(int arg0) throws JMSException { 202 203 } 204 205 public void setJMSRedelivered(boolean arg0) throws JMSException { 206 207 } 208 209 public void setJMSReplyTo(Destination arg0) throws JMSException { 210 211 } 212 213 public void setJMSTimestamp(long arg0) throws JMSException { 214 215 } 216 217 public void setJMSType(String arg0) throws JMSException { 218 219 } 220 221 public void setLongProperty(String arg0, long arg1) throws JMSException { 222 223 } 224 225 public void setObjectProperty(String arg0, Object arg1) throws JMSException { 226 227 } 228 229 public void setShortProperty(String arg0, short arg1) throws JMSException { 230 231 } 232 233 public void setStringProperty(String arg0, String arg1) throws JMSException { 234 235 } 236 237}