@Test public void getsBodyAsStream() throws Exception { ByteArrayInputStream in = new ByteArrayInputStream(new byte[0]); when(fileItem.getInputStream()).thenReturn(in); assertSame(in, inputItem.getBody()); }
@Override public InputStream getBody() throws IOException { return fileItem.getInputStream(); }
DefaultInputItem implements InputItem { @Override public InputStream getBody() throws IOException { return fileItem.getInputStream(); } }
DefaultInputItem implements InputItem { @Override public InputStream getBody() throws IOException { return fileItem.getInputStream(); } DefaultInputItem(FileItem fileItem, Providers providers); }
DefaultInputItem implements InputItem { @Override public InputStream getBody() throws IOException { return fileItem.getInputStream(); } DefaultInputItem(FileItem fileItem, Providers providers); @Override String getName(); @Override String getFilename(); @Override MediaType getMediaType(); @Override MultivaluedMap<String, String> getHeaders(); @Override InputStream getBody(); @Override T getBody(Class<T> type, Type genericType); @Override String getBodyAsString(); }
DefaultInputItem implements InputItem { @Override public InputStream getBody() throws IOException { return fileItem.getInputStream(); } DefaultInputItem(FileItem fileItem, Providers providers); @Override String getName(); @Override String getFilename(); @Override MediaType getMediaType(); @Override MultivaluedMap<String, String> getHeaders(); @Override InputStream getBody(); @Override T getBody(Class<T> type, Type genericType); @Override String getBodyAsString();  }