pull/15366/head
Andy Wilkinson 6 years ago
parent c2a9859963
commit ac322a8e30

@ -614,7 +614,7 @@ public class RabbitAutoConfigurationTests {
}
private void checkCommonProps(AssertableApplicationContext context,
AbstractRabbitListenerContainerFactory containerFactory) {
AbstractRabbitListenerContainerFactory<?> containerFactory) {
assertThat(containerFactory).hasFieldOrPropertyWithValue("autoStartup",
Boolean.FALSE);
assertThat(containerFactory).hasFieldOrPropertyWithValue("acknowledgeMode",

@ -450,7 +450,7 @@ public class KafkaAutoConfigurationTests {
.getBean(DefaultKafkaConsumerFactory.class);
KafkaTemplate<?, ?> kafkaTemplate = context
.getBean(KafkaTemplate.class);
AbstractKafkaListenerContainerFactory kafkaListenerContainerFactory = (AbstractKafkaListenerContainerFactory) context
AbstractKafkaListenerContainerFactory<?, ?, ?> kafkaListenerContainerFactory = (AbstractKafkaListenerContainerFactory<?, ?, ?>) context
.getBean(KafkaListenerContainerFactory.class);
assertThat(kafkaTemplate.getMessageConverter())
.isInstanceOf(MessagingMessageConverter.class);

Loading…
Cancel
Save