@Test void getQueryParamsReturnsTheCorrectQueryParams() throws Exception { final Map<String, List<String>> expectedMap = new HashMap<String, List<String>>(){{ put("qVar1", asList("qVal1", "qVal2")); put("qVar2", singletonList("qVal1")); put("qVar3", emptyList()); }}; final Map<String, List<String>> got = pippoRequest.getQueryParams(); assertThat(got).isEqualTo(expectedMap); }
@Override public Map<String, List<String>> getQueryParams() { return queryMap; }
PippoRequest implements Request { @Override public Map<String, List<String>> getQueryParams() { return queryMap; } }
PippoRequest implements Request { @Override public Map<String, List<String>> getQueryParams() { return queryMap; } PippoRequest(ro.pippo.core.Request request); }
PippoRequest implements Request { @Override public Map<String, List<String>> getQueryParams() { return queryMap; } PippoRequest(ro.pippo.core.Request request); @Override String getPath(); @Override String getMethod(); @Override Map<String, String> getHeaders(); @Override String getBody(); @Override Map<String, List<String>> getQueryParams(); @Override String getPrimingFileContent(); String getProtocol(); String getUrl(); int getPort(); }
PippoRequest implements Request { @Override public Map<String, List<String>> getQueryParams() { return queryMap; } PippoRequest(ro.pippo.core.Request request); @Override String getPath(); @Override String getMethod(); @Override Map<String, String> getHeaders(); @Override String getBody(); @Override Map<String, List<String>> getQueryParams(); @Override String getPrimingFileContent(); String getProtocol(); String getUrl(); int getPort();  }