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 2022/12/29 23:31:00 UTC
[jira] [Created] (SLING-11745) Sling Mocks: allow setting parts for a request
Robert Munteanu created SLING-11745:
---------------------------------------
Summary: 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
Fix For: Testing Sling Mock 3.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)