1 2 package com.mockobjects.jms; 3 4 import com.mockobjects.ExpectationMap; 5 import com.mockobjects.ExpectationSet; 6 import com.mockobjects.MapEntry; 7 8 import javax.jms.JMSException ; 9 import javax.jms.MapMessage ; 10 import java.util.Enumeration ; 11 12 18 public class MockMapMessage extends MockMessage implements MapMessage { 19 private ExpectationSet myObjectProperties = new ExpectationSet("objectProperty"); 20 21 public boolean getBoolean(String aKey) throws JMSException { 22 notImplemented(); 23 return false; 24 } 25 26 public byte getByte(String aKey) throws JMSException { 27 notImplemented(); 28 return 0; 29 } 30 31 public byte[] getBytes(String aKey) throws JMSException { 32 notImplemented(); 33 return new byte[]{}; 34 } 35 36 public char getChar(String aKey) throws JMSException { 37 notImplemented(); 38 return 0; 39 } 40 41 public double getDouble(String aKey) throws JMSException { 42 notImplemented(); 43 return 0; 44 } 45 46 public float getFloat(String aKey) throws JMSException { 47 notImplemented(); 48 return 0; 49 } 50 51 public int getInt(String aKey) throws JMSException { 52 notImplemented(); 53 return 0; 54 } 55 56 public long getLong(String aKey) throws JMSException { 57 notImplemented(); 58 return 0; 59 } 60 61 public Enumeration getMapNames() throws JMSException { 62 notImplemented(); 63 return null; 64 } 65 66 public Object getObject(String aKey) throws JMSException { 67 notImplemented(); 68 return null; 69 } 70 71 public short getShort(String aKey) throws JMSException { 72 notImplemented(); 73 return 0; 74 } 75 76 public String getString(String aKey) throws JMSException { 77 notImplemented(); 78 return null; 79 } 80 81 public boolean itemExists(String aKey) throws JMSException { 82 notImplemented(); 83 return false; 84 } 85 86 public void setBoolean(String aKey, boolean p) throws JMSException { 87 notImplemented(); 88 } 89 90 public void setByte(String aKey, byte p) throws JMSException { 91 notImplemented(); 92 } 93 94 public void setBytes(String aKey, byte[] p) throws JMSException { 95 notImplemented(); 96 } 97 98 public void setBytes(String aKey, byte[] p, int n, int n1) throws JMSException { 99 notImplemented(); 100 } 101 102 public void setChar(String aKey, char p) throws JMSException { 103 notImplemented(); 104 } 105 106 public void setDouble(String aKey, double p) throws JMSException { 107 notImplemented(); 108 } 109 110 public void setFloat(String aKey, float p) throws JMSException { 111 notImplemented(); 112 } 113 114 public void setInt(String aKey, int p) throws JMSException { 115 notImplemented(); 116 } 117 118 public void setLong(String aKey, long p) throws JMSException { 119 notImplemented(); 120 } 121 122 public void setObject(String aKey, Object p) throws JMSException { 123 notImplemented(); 124 } 125 126 public void setObjectProperty(String aKey, Object anObject) { 127 myObjectProperties.addActual(new MapEntry(aKey, anObject)); 128 } 129 130 public void setShort(String aKey, short p) throws JMSException { 131 notImplemented(); 132 } 133 134 public void setString(String aKey, String aKey1) throws JMSException { 135 notImplemented(); 136 } 137 138 public void setExpectedObjectProperty(String aKey, Object anObject) { 139 myObjectProperties.addExpected(new MapEntry(aKey, anObject)); 140 } 141 } 142 143 | Popular Tags |