use of jakarta.jms.Destination in project spring-framework by spring-projects.
the class SimpleJmsHeaderMapperTests method userDefinedPropertyWithUnsupportedType.
@Test
public void userDefinedPropertyWithUnsupportedType() throws JMSException {
Destination destination = new Destination() {
};
Message<String> message = initBuilder().setHeader("destination", destination).build();
jakarta.jms.Message jmsMessage = new StubTextMessage();
mapper.fromHeaders(message.getHeaders(), jmsMessage);
Object value = jmsMessage.getObjectProperty("destination");
assertThat(value).isNull();
}
Aggregations