Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
Servlet Helpers 1.1.6
-
None
-
Patch
Description
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.
Attachments
Attachments
Issue Links
- relates to
-
SLING-7804 sling-mock: Instantiate MockRequestPathInfo for resource resolver context
- Closed
- links to