More logging on unit test failure
This commit is contained in:
@@ -165,13 +165,7 @@ public class XMLBeansHyperlinkTest {
|
||||
// @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(", "))));
|
||||
|
||||
Reference in New Issue
Block a user