public MockResource()

in src/main/java/org/apache/sling/testing/resourceresolver/MockResource.java [50:63]


    public MockResource(final String path, final Map<String, Object> props, final ResourceResolver resolver) {
        this.resolver = resolver;
        this.path = path;
        this.rm = new ResourceMetadata();
        this.rm.setResolutionPath(path);
        if (props instanceof MockValueMap) {
            this.props = (MockValueMap) props;
        } else if (props instanceof ReadonlyValueMapDecorator
                && ((ReadonlyValueMapDecorator) props).getDelegate() instanceof MockValueMap) {
            this.props = ((ReadonlyValueMapDecorator) props).getDelegate();
        } else {
            this.props = new MockValueMap(this, props);
        }
    }