Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-7744

MockRequestPathInfo: Implement getSuffixResource()

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Servlet Helpers 1.1.6
    • Servlet Helpers 1.1.8
    • Servlets, Testing
    • 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

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            sseifert Stefan Seifert
            jenslauterbach Jens Lauterbach
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 40m
                1h 40m

                Slack

                  Issue deployment