@Test void getHeadersReturnsTheCorrectHeaders() throws Exception { final Map<String, String> expectedHeaders = headerNames.stream().collect(toMap(identity(), String::toUpperCase)); final Map<String, String> got = pippoRequest.getHeaders(); assertThat(got).isEqualTo(expectedHeaders); }
@Override public Map<String, String> getHeaders() { return headers; }
PippoRequest implements Request { @Override public Map<String, String> getHeaders() { return headers; } }
PippoRequest implements Request { @Override public Map<String, String> getHeaders() { return headers; } PippoRequest(ro.pippo.core.Request request); }
PippoRequest implements Request { @Override public Map<String, String> getHeaders() { return headers; } 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, String> getHeaders() { return headers; } 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();  }