Skip to content

Commit

Permalink
More logging on unit test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
BoykoAlex committed Feb 28, 2025
1 parent b0d42d1 commit 9ccbc32
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,7 @@ void testBeanPropertyNameFromSuperClassHyperlink() throws Exception {
// @Disabled
void testBeanRefHyperlink() throws Exception {
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);
assertEquals(4, springIndex.getBeans().length, "All beans are: %s".formatted(Arrays.stream(allBeans).map(b -> "(name=%s, type=%s)".formatted(b.getName(), b.getType())).collect(Collectors.joining(", "))));

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 9ccbc32

Please sign in to comment.