@Test public void filterWithParameter() throws IOException, ServletException { filterWithParameterForMethod("delete", "DELETE"); filterWithParameterForMethod("put", "PUT"); filterWithParameterForMethod("patch", "PATCH"); }
@Test public void filterWithParameterDisallowedMethods() throws IOException, ServletException { filterWithParameterForMethod("trace", "POST"); filterWithParameterForMethod("head", "POST"); filterWithParameterForMethod("options", "POST"); }
@Test public void filterWithNoParameter() throws IOException, ServletException { filterWithParameterForMethod(null, "POST"); }