use of org.apache.sling.jcr.resource.internal.helper.jcr.PathMapper in project sling by apache.
the class MockResolverProvider method getResourceResolver.
public static ResourceResolver getResourceResolver() throws RepositoryException, LoginException {
final SlingRepository repository = RepositoryProvider.instance().getRepository();
final BundleContext bundleContext = MockOsgi.newBundleContext();
bundleContext.registerService(PathMapper.class.getName(), new PathMapper(), null);
return new MockJcrResourceResolverFactory(repository, bundleContext).getAdministrativeResourceResolver(null);
}
Aggregations