@Test public void shouldReturnSameFilename() { String filename = "justfortest.txt"; String path = "/hello/world/" + filename; File newFile = new File(path); FilePart part = new FilePart(name, newFile); String result = part.getFilename(); assertThat(result, is(filename)); }
public String getFilename() { return filename; }
FilePart extends AbstractPart { public String getFilename() { return filename; } }
FilePart extends AbstractPart { public String getFilename() { return filename; } FilePart(File file);  FilePart(String name, File file);  FilePart(String name, File file, ContentType contentType); }
FilePart extends AbstractPart { public String getFilename() { return filename; } 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 { public String getFilename() { return filename; } FilePart(File file);  FilePart(String name, File file);  FilePart(String name, File file, ContentType contentType); @Override ContentType getContentType(); @Override InputStream getContent(); String getFilename();  }