@Test public void shouldReturnSameContentType() { ContentType contentType = ContentType.CONTENT_TYPE_TEXT_JSON; Part part = new FilePart(name, file, contentType); ContentType returnContentType = part.getContentType(); assertThat(contentType, is(returnContentType)); }
@Override public ContentType getContentType() { return contentType; }
FilePart extends AbstractPart { @Override public ContentType getContentType() { return contentType; } }
FilePart extends AbstractPart { @Override public ContentType getContentType() { return contentType; } FilePart(File file);  FilePart(String name, File file);  FilePart(String name, File file, ContentType contentType); }
FilePart extends AbstractPart { @Override public ContentType getContentType() { return contentType; } FilePart(File file);  FilePart(String name, File file);  FilePart(String name, File file, ContentType contentType); @Override ContentType getContentType(); @Override InputStream getContent(); String getFilename(); }
FilePart extends AbstractPart { @Override public ContentType getContentType() { return contentType; } FilePart(File file);  FilePart(String name, File file);  FilePart(String name, File file, ContentType contentType); @Override ContentType getContentType(); @Override InputStream getContent(); String getFilename();  }