Skip to content

Commit

Permalink
added some debug output to identify root cause of unstable failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
martinlippert committed Feb 21, 2025
1 parent 358c9cc commit f0524b4
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,14 @@ void testBeanPropertyNameFromSuperClassHyperlink() throws Exception {
@Test
// @Disabled
void testBeanRefHyperlink() throws Exception {
assertEquals(springIndex.getBeans().length, 4);
Bean[] allBeans = springIndex.getBeans();
log.info("------------------ testBeanRefHyperlink - all the beans ----------------------");
for (Bean bean : allBeans) {
log.info("bean: " + bean.getName() + " - " + bean.getLocation().getUri());
}
log.info("------------------ testBeanRefHyperlink - end of all the beans ----------------------");

assertEquals(4, springIndex.getBeans().length);

Bean[] beans = springIndex.getBeansWithName(project.getElementName(), "simpleObj");
assertEquals(1, beans.length, "Found beans are: %s".formatted(Arrays.stream(beans).map(b -> "(name=%s, type=%s)".formatted(b.getName(), b.getType())).collect(Collectors.joining(", "))));
Expand Down

0 comments on commit f0524b4

Please sign in to comment.