Forward compatibility with Servlet 4.0: `getTrailerFields()`
@@ -11,9 +11,7 @@ import com.gargoylesoftware.htmlunit.WebRequest;
import com.gargoylesoftware.htmlunit.util.NameValuePair;
import java.io.IOException;
import java.net.URL;
-import java.util.Collection;
import java.util.Collections;
-import java.util.Enumeration;
import java.util.List;
import java.util.Map;
import javax.servlet.ServletException;
@@ -498,8 +496,6 @@ public class DoActionFilterTest extends StaplerAbstractTest {
public void doWithResponseImpl(ResponseImpl response) { replyOk(); }
- public void doWithRequestAndResponse(RequestAndResponse requestAndResponse) { replyOk(); }
-
// special case to keep Groovy parameter name, but does not seem to indicate it's automatically a web method
@CapturedParameterNames("req")
public void doAnnotatedResponseSuccess(Object req) { replyOk(); }
@@ -509,21 +505,6 @@ public class DoActionFilterTest extends StaplerAbstractTest {
// public void doAnnotatedJsonOutputFilter() { replyOk(); }
}
- public abstract static class RequestAndResponse implements StaplerRequest, StaplerResponse {
- @Override
- public CollectionAndEnumeration getHeaderNames() {
- return null;
- }
-
- @Override
- public CollectionAndEnumeration getHeaders(String name) {
- return null;
- }
-
- public abstract static class CollectionAndEnumeration implements Collection, Enumeration {
- }
- }
-
@Test
public void testNotOkSpecialCases_withServletRequest() throws Exception {
assertNotReachable("testNewRulesNotOkSpecialCases/withServletRequest/");
@@ -548,12 +529,6 @@ public class DoActionFilterTest extends StaplerAbstractTest {
assertDoActionRequestWasBlockedAndResetFlag();
}
- @Test
- public void testNotOkSpecialCases_withRequestAndResponse() throws Exception {
- assertNotReachable("testNewRulesNotOkSpecialCases/withRequestAndResponse/");
- assertDoActionRequestWasBlockedAndResetFlag();
- }
-
@Test
public void testNotOkSpecialCases_annotatedResponseSuccess() throws Exception {
assertNotReachable("testNewRulesNotOkSpecialCases/annotatedResponseSuccess/");
