This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-launchpad-integration-tests.git
commit d3fa0f98a0fac4e1e599abc66a6c452522dc263e Author: Robert Munteanu <[email protected]> AuthorDate: Fri Aug 17 15:11:26 2018 +0200 SLING-7792 - Resource Resolver should return more than one resolved path if available Clarify assertion failures in currently failing tests. --- .../integrationtest/resourceresolver/ResourceResolverGeneralTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/resourceresolver/ResourceResolverGeneralTest.java b/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/resourceresolver/ResourceResolverGeneralTest.java index f4d5e79..09230e2 100644 --- a/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/resourceresolver/ResourceResolverGeneralTest.java +++ b/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/resourceresolver/ResourceResolverGeneralTest.java @@ -2352,7 +2352,7 @@ public class ResourceResolverGeneralTest { path = ResourceUtil.normalize(ResourceUtil.getParent(rootPath) + "/" + alias+"/child"); mapped = resResolver.map(child.getPath()); - assertEquals(path, mapped); + assertEquals("Incorrectly mapped path for node at " + child.getPath(), path, mapped); } finally { rootNode.getProperty("sling:alias").remove(); if ( rootNode.hasNode("child") ) { @@ -2386,7 +2386,7 @@ public class ResourceResolverGeneralTest { path = ResourceUtil.normalize(ResourceUtil.getParent(rootPath) + "/" + alias+"/_jcr_content/child"); mapped = resResolver.map(child.getPath()); - assertEquals(path, mapped); + assertEquals("Incorrectly mapped path for node at " + child.getPath(), path, mapped); } finally { content.remove(); session.save();
