@Test public void getParameterIsNotDelegated() throws Exception { HttpServletRequest request = createMock(HttpServletRequest.class); ParametersServletRequestWrapper wrapper = new ParametersServletRequestWrapper(request); replay(request); String value = wrapper.getParameter("foo"); verify(request); assertNull(value); }
@Override public String getParameter(String name) { return getValueFor(name).single(); }
ParametersServletRequestWrapper extends HttpServletRequestWrapper { @Override public String getParameter(String name) { return getValueFor(name).single(); } }
ParametersServletRequestWrapper extends HttpServletRequestWrapper { @Override public String getParameter(String name) { return getValueFor(name).single(); } ParametersServletRequestWrapper(HttpServletRequest httpServletRequest); }
ParametersServletRequestWrapper extends HttpServletRequestWrapper { @Override public String getParameter(String name) { return getValueFor(name).single(); } ParametersServletRequestWrapper(HttpServletRequest httpServletRequest); @Override String getParameter(String name); @Override Map<String, String[]> getParameterMap(); @Override Enumeration<String> getParameterNames(); @Override String[] getParameterValues(String name); void addParameter(String name, String value); @Override void setCharacterEncoding(String enc); }
ParametersServletRequestWrapper extends HttpServletRequestWrapper { @Override public String getParameter(String name) { return getValueFor(name).single(); } ParametersServletRequestWrapper(HttpServletRequest httpServletRequest); @Override String getParameter(String name); @Override Map<String, String[]> getParameterMap(); @Override Enumeration<String> getParameterNames(); @Override String[] getParameterValues(String name); void addParameter(String name, String value); @Override void setCharacterEncoding(String enc);  }