pull/15366/head
Andy Wilkinson 6 years ago
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…
Cancel
Save