You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Robert Munteanu (Jira)" <ji...@apache.org> on 2023/03/11 14:11:00 UTC

[jira] [Closed] (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:all-tabpanel ]

Robert Munteanu closed SLING-11745.
-----------------------------------

> 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
>            Assignee: Robert Munteanu
>            Priority: Minor
>             Fix For: Servlet Helpers 1.4.4
>
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> 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)