You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Stefan Seifert (Jira)" <ji...@apache.org> on 2023/02/28 10:16:00 UTC
[jira] [Commented] (SLING-11745) Sling Mocks: allow setting parts for a request
[ https://issues.apache.org/jira/browse/SLING-11745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17694474#comment-17694474 ]
Stefan Seifert commented on SLING-11745:
----------------------------------------
that needs to be implemented in [https://github.com/apache/sling-org-apache-sling-servlet-helpers] (which is used by sling mocks)
> Sling Mocks: allow setting parts for a request
> ----------------------------------------------
>
> Key: SLING-11745
> URL: https://issues.apache.org/jira/browse/SLING-11745
> Project: Sling
> Issue Type: Improvement
> Components: Testing
> Reporter: Robert Munteanu
> Priority: Minor
> Fix For: Servlet Helpers 1.4.4
>
>
> The Sling Mocks currently do not support setting one or multiple parts for the request. These are useful when testing upload functionality.
> The {{Part}} interface contains multiple methods, but I guess the following would make a nice minimal implementation:
> - getInputStream
> - getName / getSubmittedFileName
> with the others being stubbed out.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)