mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Restore test ensuring maxInboundMessageBodySize property matches default
See gh-37603
This commit is contained in:
parent
d5395c97c0
commit
3591f4d614
@ -16,6 +16,7 @@
|
||||
|
||||
package org.springframework.boot.autoconfigure.amqp;
|
||||
|
||||
import com.rabbitmq.client.ConnectionFactory;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import org.springframework.amqp.rabbit.config.DirectRabbitListenerContainerFactory;
|
||||
@ -313,6 +314,13 @@ class RabbitPropertiesTests {
|
||||
assertThat(this.properties.getSsl().determineEnabled()).isTrue();
|
||||
}
|
||||
|
||||
@Test
|
||||
void propertiesUseConsistentDefaultValues() {
|
||||
ConnectionFactory connectionFactory = new ConnectionFactory();
|
||||
assertThat(connectionFactory).hasFieldOrPropertyWithValue("maxInboundMessageBodySize",
|
||||
(int) this.properties.getMaxInboundMessageBodySize().toBytes());
|
||||
}
|
||||
|
||||
@Test
|
||||
void simpleContainerUseConsistentDefaultValues() {
|
||||
SimpleRabbitListenerContainerFactory factory = new SimpleRabbitListenerContainerFactory();
|
||||
|
Loading…
Reference in New Issue
Block a user