Upgrade to SA-2.2.17; fix compatibility

This commit is contained in:
Artem Bilan
2021-05-17 12:02:53 -04:00
parent 09e5a1cf7e
commit de4b8e1b5c
2 changed files with 5 additions and 4 deletions

View File

@@ -94,7 +94,7 @@ ext {
rsocketVersion = '1.0.3'
servletApiVersion = '4.0.1'
smackVersion = '4.3.4'
springAmqpVersion = project.hasProperty('springAmqpVersion') ? project.springAmqpVersion : '2.2.16.RELEASE'
springAmqpVersion = project.hasProperty('springAmqpVersion') ? project.springAmqpVersion : '2.2.17.RELEASE'
springDataVersion = project.hasProperty('springDataVersion') ? project.springDataVersion : 'Neumann-SR9'
springSecurityVersion = project.hasProperty('springSecurityVersion') ? project.springSecurityVersion : '5.3.9.RELEASE'
springRetryVersion = '1.2.5.RELEASE'

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2019 the original author or authors.
* Copyright 2002-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -35,6 +35,7 @@ import org.junit.Test;
import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.core.MessageListener;
import org.springframework.amqp.core.MessageProperties;
import org.springframework.amqp.rabbit.connection.Connection;
import org.springframework.amqp.rabbit.connection.ConnectionFactory;
import org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer;
@@ -80,7 +81,7 @@ public class DispatcherHasNoSubscribersTests {
MessageListener listener = (MessageListener) container.getMessageListener();
try {
listener.onMessage(new Message("Hello world!".getBytes(), null));
listener.onMessage(new Message("Hello world!".getBytes(), new MessageProperties()));
fail("Exception expected");
}
catch (MessageDeliveryException e) {
@@ -107,7 +108,7 @@ public class DispatcherHasNoSubscribersTests {
List<String> logList = insertMockLoggerInListener(amqpChannel);
MessageListener listener = (MessageListener) container.getMessageListener();
listener.onMessage(new Message("Hello world!".getBytes(), null));
listener.onMessage(new Message("Hello world!".getBytes(), new MessageProperties()));
verifyLogReceived(logList);
}