ppalaga commented on code in PR #3821:
URL: https://github.com/apache/camel-quarkus/pull/3821#discussion_r889934168
##########
integration-test-groups/foundation/bean/src/main/java/org/apache/camel/quarkus/component/bean/BeanResource.java:
##########
@@ -164,4 +169,18 @@ String awaitFirst(String key) {
return list.get(0);
}
+ @Path("/withDefaultBeanCount")
+ @GET
+ @Produces(MediaType.TEXT_PLAIN)
+ public int withDefaultBeanCount() {
+ return
camelContext.getRegistry().findByType(Producers.WithDefaultBeanInstance.class).size();
+ }
+
+ @Path("/withAlternativeBeanCount")
+ @GET
+ @Produces(MediaType.TEXT_PLAIN)
+ public int withAlternativeBeanCount() {
+ return
camelContext.getRegistry().findByType(Producers.WithAlternateBeanInstance.class).size();
+ }
Review Comment:
I see that this primarily covers the cause of the original bug report. But
wouldn't it be better to make sure that the registry returns the right single
bean returned by the right producer method?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]