@Test public void testSetDoubleGetIllegal() throws Exception { JmsMapMessage mapMessage = factory.createMapMessage(); String name = "myName"; double value = Double.MAX_VALUE; mapMessage.setDouble(name, value); assertGetMapEntryThrowsMessageFormatException(mapMessage, name, byte[].class); assertGetMapEntryThrowsMessageFormatException(mapMessage, name, Character.class); assertGetMapEntryThrowsMessageFormatException(mapMessage, name, Boolean.class); assertGetMapEntryThrowsMessageFormatException(mapMessage, name, Byte.class); assertGetMapEntryThrowsMessageFormatException(mapMessage, name, Short.class); assertGetMapEntryThrowsMessageFormatException(mapMessage, name, Integer.class); assertGetMapEntryThrowsMessageFormatException(mapMessage, name, Long.class); assertGetMapEntryThrowsMessageFormatException(mapMessage, name, Float.class); }
@Override public void setDouble(String name, double value) throws JMSException { put(name, Double.valueOf(value)); }
JmsMapMessage extends JmsMessage implements MapMessage { @Override public void setDouble(String name, double value) throws JMSException { put(name, Double.valueOf(value)); } }
JmsMapMessage extends JmsMessage implements MapMessage { @Override public void setDouble(String name, double value) throws JMSException { put(name, Double.valueOf(value)); } JmsMapMessage(JmsMapMessageFacade facade); }
JmsMapMessage extends JmsMessage implements MapMessage { @Override public void setDouble(String name, double value) throws JMSException { put(name, Double.valueOf(value)); } JmsMapMessage(JmsMapMessageFacade facade); @Override JmsMapMessage copy(); @Override void clearBody(); @Override boolean getBoolean(String name); @Override byte getByte(String name); @Override short getShort(String name); @Override char getChar(String name); @Override int getInt(String name); @Override long getLong(String name); @Override float getFloat(String name); @Override double getDouble(String name); @Override String getString(String name); @Override byte[] getBytes(String name); @Override Object getObject(String name); @Override Enumeration<String> getMapNames(); @Override void setBoolean(String name, boolean value); @Override void setByte(String name, byte value); @Override void setShort(String name, short value); @Override void setChar(String name, char value); @Override void setInt(String name, int value); @Override void setLong(String name, long value); @Override void setFloat(String name, float value); @Override void setDouble(String name, double value); @Override void setString(String name, String value); @Override void setBytes(String name, byte[] value); @Override void setBytes(String name, byte[] value, int offset, int length); @Override void setObject(String name, Object value); @Override boolean itemExists(String name); @Override String toString(); @Override boolean isBodyAssignableTo(@SuppressWarnings("rawtypes") Class target); }
JmsMapMessage extends JmsMessage implements MapMessage { @Override public void setDouble(String name, double value) throws JMSException { put(name, Double.valueOf(value)); } JmsMapMessage(JmsMapMessageFacade facade); @Override JmsMapMessage copy(); @Override void clearBody(); @Override boolean getBoolean(String name); @Override byte getByte(String name); @Override short getShort(String name); @Override char getChar(String name); @Override int getInt(String name); @Override long getLong(String name); @Override float getFloat(String name); @Override double getDouble(String name); @Override String getString(String name); @Override byte[] getBytes(String name); @Override Object getObject(String name); @Override Enumeration<String> getMapNames(); @Override void setBoolean(String name, boolean value); @Override void setByte(String name, byte value); @Override void setShort(String name, short value); @Override void setChar(String name, char value); @Override void setInt(String name, int value); @Override void setLong(String name, long value); @Override void setFloat(String name, float value); @Override void setDouble(String name, double value); @Override void setString(String name, String value); @Override void setBytes(String name, byte[] value); @Override void setBytes(String name, byte[] value, int offset, int length); @Override void setObject(String name, Object value); @Override boolean itemExists(String name); @Override String toString(); @Override boolean isBodyAssignableTo(@SuppressWarnings("rawtypes") Class target);  }