rombert commented on a change in pull request #10:
URL:
https://github.com/apache/sling-org-apache-sling-servlets-post/pull/10#discussion_r560869006
##########
File path:
src/test/java/org/apache/sling/servlets/post/impl/SlingPostServletTest.java
##########
@@ -238,31 +355,31 @@ void setStatusParam(String statusParam) {
}
private static class SendErrorParamSlingHttpServletRequest extends
- MockSlingHttpServlet3Request {
-
- private String sendError;
-
- public SendErrorParamSlingHttpServletRequest() {
- // nothing to setup, we don't care
- super(null, null, null, null, null);
- }
-
- @Override
- public String getParameter(String name) {
- if (SlingPostConstants.RP_SEND_ERROR.equals(name)) {
- return sendError;
- }
-
- return super.getParameter(name);
- }
-
- void setSendError(String sendErrorParam) {
- this.sendError = sendErrorParam;
- }
-
- public <AdapterType> AdapterType adaptTo(Class<AdapterType>
type) {
- return null;
- }
- }
+ MockSlingHttpServlet3Request {
Review comment:
Please avoid whitespace-only changes, or separate them to their own
commits.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]