This is an automated email from the ASF dual-hosted git repository.
cziegeler pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-engine.git
The following commit(s) were added to refs/heads/master by this push:
new b3ec46c SLING-11206 : Add support for buidling RequestProgressTracker
b3ec46c is described below
commit b3ec46cfca99f8e3d35501ed0ead06d473495dc7
Author: Carsten Ziegeler <[email protected]>
AuthorDate: Tue Mar 15 13:38:30 2022 +0100
SLING-11206 : Add support for buidling RequestProgressTracker
---
.../java/org/apache/sling/engine/impl/filter/AbstractFilterTest.java | 3 +++
1 file changed, 3 insertions(+)
diff --git
a/src/test/java/org/apache/sling/engine/impl/filter/AbstractFilterTest.java
b/src/test/java/org/apache/sling/engine/impl/filter/AbstractFilterTest.java
index 4c280f3..27dc74f 100644
--- a/src/test/java/org/apache/sling/engine/impl/filter/AbstractFilterTest.java
+++ b/src/test/java/org/apache/sling/engine/impl/filter/AbstractFilterTest.java
@@ -25,6 +25,7 @@ import javax.servlet.Filter;
import org.apache.sling.api.SlingHttpServletRequest;
import org.apache.sling.api.request.RequestPathInfo;
+import org.apache.sling.api.request.builder.Builders;
import org.jmock.Expectations;
import org.jmock.Mockery;
import org.jmock.integration.junit4.JUnit4Mockery;
@@ -100,6 +101,8 @@ public abstract class AbstractFilterTest {
final SlingHttpServletRequest req =
context.mock(SlingHttpServletRequest.class, "req " + path + extension + method
+ suffix);
context.checking(new Expectations() {{
+ allowing(req).getRequestProgressTracker();
+ will(returnValue(Builders.newRequestProgressTracker()));
allowing(req).getRequestPathInfo();
will(returnValue(info));
allowing(req).getMethod();