This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to annotated tag org.apache.sling.testing.sling-mock-1.1.0 in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-testing-sling-mock.git
commit a07abf84ec5d6c816b636d3ef40f147891306691 Author: Stefan Seifert <[email protected]> AuthorDate: Tue Dec 9 13:14:58 2014 +0000 SLING-4108 default to getAdministrativeResourceResolver in sling-mock to support jackrabbit resource resolver adapter as well git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/testing/mocks/sling-mock@1644043 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/java/org/apache/sling/testing/mock/sling/MockSling.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/sling/testing/mock/sling/MockSling.java b/src/main/java/org/apache/sling/testing/mock/sling/MockSling.java index 208a8d1..5b7ca82 100644 --- a/src/main/java/org/apache/sling/testing/mock/sling/MockSling.java +++ b/src/main/java/org/apache/sling/testing/mock/sling/MockSling.java @@ -109,7 +109,7 @@ public final class MockSling { public static ResourceResolver newResourceResolver(final ResourceResolverType type) { ResourceResolverFactory factory = newResourceResolverFactory(type); try { - return factory.getResourceResolver(null); + return factory.getAdministrativeResourceResolver(null); } catch (LoginException ex) { throw new RuntimeException("Mock resource resolver factory implementation seems to require login.", ex); } -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
