@Test public void testGetObjectUsingReceivedMessageWithDataSectionContainingNothingReturnsNull() throws Exception { Message message = Message.Factory.create(); message.setContentType(AmqpMessageSupport.SERIALIZED_JAVA_OBJECT_CONTENT_TYPE.toString()); message.setBody(new Data(null)); AmqpJmsObjectMessageFacade amqpObjectMessageFacade = createReceivedObjectMessageFacade(createMockAmqpConsumer(), message); assertNull("Expected null object", amqpObjectMessageFacade.getObject()); }
@Override public Serializable getObject() throws IOException, ClassNotFoundException { return delegate.getObject(); }
AmqpJmsObjectMessageFacade extends AmqpJmsMessageFacade implements JmsObjectMessageFacade { @Override public Serializable getObject() throws IOException, ClassNotFoundException { return delegate.getObject(); } }
AmqpJmsObjectMessageFacade extends AmqpJmsMessageFacade implements JmsObjectMessageFacade { @Override public Serializable getObject() throws IOException, ClassNotFoundException { return delegate.getObject(); }  }
AmqpJmsObjectMessageFacade extends AmqpJmsMessageFacade implements JmsObjectMessageFacade { @Override public Serializable getObject() throws IOException, ClassNotFoundException { return delegate.getObject(); }  @Override void initialize(AmqpConnection connection); @Override void initialize(AmqpConsumer consumer); @Override byte getJmsMsgType(); boolean isAmqpTypedEncoding(); @Override AmqpJmsObjectMessageFacade copy(); @Override Serializable getObject(); @Override void setObject(Serializable value); @Override void clearBody(); @Override boolean hasBody(); @Override void onSend(long producerTtl); @Override JmsObjectMessage asJmsMessage(); }
AmqpJmsObjectMessageFacade extends AmqpJmsMessageFacade implements JmsObjectMessageFacade { @Override public Serializable getObject() throws IOException, ClassNotFoundException { return delegate.getObject(); }  @Override void initialize(AmqpConnection connection); @Override void initialize(AmqpConsumer consumer); @Override byte getJmsMsgType(); boolean isAmqpTypedEncoding(); @Override AmqpJmsObjectMessageFacade copy(); @Override Serializable getObject(); @Override void setObject(Serializable value); @Override void clearBody(); @Override boolean hasBody(); @Override void onSend(long producerTtl); @Override JmsObjectMessage asJmsMessage();  }