Package org.apache.sling.testing.resourceresolver

Examples of org.apache.sling.testing.resourceresolver.MockResourceResolverFactory


                }
            }
        };
        final MockResourceResolverFactoryOptions opts = new MockResourceResolverFactoryOptions();
        opts.setEventAdmin(ea);
        final ResourceResolverFactory factory = new MockResourceResolverFactory(opts);

        this.sender = new DistributedEventSender(bc, DistributedEventAdminImpl.DEFAULT_REPOSITORY_PATH,
                DistributedEventAdminImpl.DEFAULT_REPOSITORY_PATH + "/" + MY_APP_ID, factory, ea);

        this.receiver = new DistributedEventReceiver(bc, DistributedEventAdminImpl.DEFAULT_REPOSITORY_PATH,
View Full Code Here


        options.setMangleNamespacePrefixes(true);
    }

    @Override
    public ResourceResolverFactory newResourceResolverFactory() {
        return new MockResourceResolverFactory(options);
    }
View Full Code Here

    private CRUDMergingResourceProvider provider;

    @Before public void setup() throws Exception {
        final MockResourceResolverFactoryOptions options = new MockResourceResolverFactoryOptions();
        options.setSearchPaths(new String[] {"/apps/", "/libs/"});
        final ResourceResolverFactory factory = new MockResourceResolverFactory(options);
        this.resolver = factory.getResourceResolver(null);
        MockHelper.create(this.resolver).resource("/apps")
                                          .resource("a").p(MergedResourceConstants.PN_HIDE_CHILDREN, new String[] {"Z", "x", "y"})
                                            .resource("1").p("a", "1").p("b", "2")
                                            .resource(".2").p(ResourceResolver.PROPERTY_RESOURCE_TYPE, "apps")
                                            .resource(".3").p("e", "2")
View Full Code Here

     */
    @Before
    public void setup() throws Exception {
        final MockResourceResolverFactoryOptions options = new MockResourceResolverFactoryOptions();
        options.setSearchPaths(new String[] {"/apps", "/libs"});
        final ResourceResolverFactory factory = new MockResourceResolverFactory(options);
        this.resolver = factory.getAdministrativeResourceResolver(null);
        MockHelper.create(this.resolver)
                    .resource("/apps")
                    .resource("a")
                    .resource("1").p("a", "1").p("b", "1")
                    .resource("a").p("1", "a").p("2", "b")
View Full Code Here

  private ResourceResolver resResolver;
    private ResourceCollectionManager rcm;

  @Before
  public void setUp() throws Exception {
    resResolver = new MockResourceResolverFactory().getAdministrativeResourceResolver(null);
    rcm = new ResourceCollectionManagerImpl();
  }
View Full Code Here

TOP

Related Classes of org.apache.sling.testing.resourceresolver.MockResourceResolverFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.