mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Polish
This commit is contained in:
parent
c2a9859963
commit
ac322a8e30
@ -614,7 +614,7 @@ public class RabbitAutoConfigurationTests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void checkCommonProps(AssertableApplicationContext context,
|
private void checkCommonProps(AssertableApplicationContext context,
|
||||||
AbstractRabbitListenerContainerFactory containerFactory) {
|
AbstractRabbitListenerContainerFactory<?> containerFactory) {
|
||||||
assertThat(containerFactory).hasFieldOrPropertyWithValue("autoStartup",
|
assertThat(containerFactory).hasFieldOrPropertyWithValue("autoStartup",
|
||||||
Boolean.FALSE);
|
Boolean.FALSE);
|
||||||
assertThat(containerFactory).hasFieldOrPropertyWithValue("acknowledgeMode",
|
assertThat(containerFactory).hasFieldOrPropertyWithValue("acknowledgeMode",
|
||||||
|
@ -450,7 +450,7 @@ public class KafkaAutoConfigurationTests {
|
|||||||
.getBean(DefaultKafkaConsumerFactory.class);
|
.getBean(DefaultKafkaConsumerFactory.class);
|
||||||
KafkaTemplate<?, ?> kafkaTemplate = context
|
KafkaTemplate<?, ?> kafkaTemplate = context
|
||||||
.getBean(KafkaTemplate.class);
|
.getBean(KafkaTemplate.class);
|
||||||
AbstractKafkaListenerContainerFactory kafkaListenerContainerFactory = (AbstractKafkaListenerContainerFactory) context
|
AbstractKafkaListenerContainerFactory<?, ?, ?> kafkaListenerContainerFactory = (AbstractKafkaListenerContainerFactory<?, ?, ?>) context
|
||||||
.getBean(KafkaListenerContainerFactory.class);
|
.getBean(KafkaListenerContainerFactory.class);
|
||||||
assertThat(kafkaTemplate.getMessageConverter())
|
assertThat(kafkaTemplate.getMessageConverter())
|
||||||
.isInstanceOf(MessagingMessageConverter.class);
|
.isInstanceOf(MessagingMessageConverter.class);
|
||||||
|
Loading…
Reference in New Issue
Block a user