@Test void getPrimingFileContentReturnsContentOfPrimingFile() throws Exception { when(request.getContentType()).thenReturn("multipart/form-data"); final String got = new PippoRequest(request).getPrimingFileContent(); assertThat(got).isEqualTo(body); }
@Override public String getPrimingFileContent() { return primingFileContent; }
PippoRequest implements Request { @Override public String getPrimingFileContent() { return primingFileContent; } }
PippoRequest implements Request { @Override public String getPrimingFileContent() { return primingFileContent; } PippoRequest(ro.pippo.core.Request request); }
PippoRequest implements Request { @Override public String getPrimingFileContent() { return primingFileContent; } 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 String getPrimingFileContent() { return primingFileContent; } 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();  }