You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Konrad Windszus (JIRA)" <ji...@apache.org> on 2016/04/20 19:02:25 UTC

[jira] [Created] (SLING-5673) MockResourceResolver.resolve might return null

Konrad Windszus created SLING-5673:
--------------------------------------

             Summary: MockResourceResolver.resolve might return null
                 Key: SLING-5673
                 URL: https://issues.apache.org/jira/browse/SLING-5673
             Project: Sling
          Issue Type: Bug
          Components: Testing
    Affects Versions: Testing ResourceResolver Mock 1.1.12
            Reporter: Konrad Windszus


The API contract for {{ResourceResolver.resolve(...)}} states
bq. returns The Resource addressed by the {{absPath}} or a {{NonExistingResource}} if no such resource can be resolved.

The {{MockResourceResolver.resolve(...)}} returns {{null}} instead, which is violating the API. Please in those cases return a {{NonExistingResource}} instead.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)