You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Jens Lauterbach (JIRA)" <ji...@apache.org> on 2018/06/18 13:48:00 UTC
[jira] [Updated] (SLING-7744) MockRequestPathInfo: Add Setter for
SuffixResource
[ https://issues.apache.org/jira/browse/SLING-7744?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jens Lauterbach updated SLING-7744:
-----------------------------------
Attachment: SLING-7744.patch
> MockRequestPathInfo: Add Setter for SuffixResource
> --------------------------------------------------
>
> Key: SLING-7744
> URL: https://issues.apache.org/jira/browse/SLING-7744
> Project: Sling
> Issue Type: Improvement
> Components: Servlets, Testing
> Reporter: Jens Lauterbach
> Priority: Minor
> Attachments: SLING-7744.patch
>
>
> The `org.apache.sling.servlethelpers.MockRequestPathInfo` allows consumers to set almost every field except the 'suffixResource`. Currently, the `getSuffixResource()` just throws a `UnsupportedOperationException`.
> *I propose implementing a `setSuffixResource` method equivalent to all the other setters in this mock.*
> As far as I can tell this can be easily implemented (see attached patch) and would improve usability of this mock a little bit.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)