VRaptorRequest extends HttpServletRequestWrapper implements MutableRequest { @Override public String getParameter(String name) { if (extraParameters.containsKey(name)) { String[] values = extraParameters.get(name); if (values.length == 1) { return values[0]; } else { return Arrays.toString(values); } } return super.getParameter(name); } VRaptorRequest(HttpServletRequest request); @Override String getParameter(String name); @SuppressWarnings({ "unchecked", "rawtypes" }) @Override Enumeration getParameterNames(); @Override String[] getParameterValues(String name); @SuppressWarnings({ "unchecked", "rawtypes" }) @Override Map getParameterMap(); void setParameter(String key, String... value); @Override String toString();  }
@Test public void searchesOnTheFallbackRequest() { assertThat(vraptor.getParameter("name"), is(equalTo("guilherme"))); }
@Test public void returnsNullIfNotFound() { assertThat(vraptor.getParameter("minimum"), is(nullValue())); }