Skip to content

Commit e65bdf1

Browse files
committed
Adjust reactive test for topic builder having prototype scope
1 parent df8db51 commit e65bdf1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/pulsar/PulsarReactiveAutoConfigurationTests.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,11 @@ void injectsExpectedBeans() {
178178
assertThat(senderFactory)
179179
.extracting("topicResolver", InstanceOfAssertFactories.type(TopicResolver.class))
180180
.isSameAs(context.getBean(TopicResolver.class));
181-
assertThat(senderFactory)
182-
.extracting("topicBuilder", InstanceOfAssertFactories.type(PulsarTopicBuilder.class))
183-
.isSameAs(context.getBean(PulsarTopicBuilder.class));
181+
assertThat(senderFactory).extracting("topicBuilder").isNotNull(); // prototype
182+
// so
183+
// only
184+
// check
185+
// not-null
184186
});
185187
}
186188

0 commit comments

Comments
 (0)