@Test(expected = IllegalArgumentException.class) public void shouldThrowIllegalArgumentExceptionIfFileDoesntExists() throws Exception { File file0 = new File("a.path.that.doesnot.exists"); FileDownload fd = new FileDownload(file0, "type", "x.txt", false); fd.write(response); }
public void write(HttpServletResponse response) throws IOException { inputDownload.write(response); }
FileDownload implements Download { public void write(HttpServletResponse response) throws IOException { inputDownload.write(response); } }
FileDownload implements Download { public void write(HttpServletResponse response) throws IOException { inputDownload.write(response); } FileDownload(File file, String contentType, String fileName);  FileDownload(File file, String contentType);  FileDownload(File file, String contentType, String fileName, boolean doDownload); }
FileDownload implements Download { public void write(HttpServletResponse response) throws IOException { inputDownload.write(response); } FileDownload(File file, String contentType, String fileName);  FileDownload(File file, String contentType);  FileDownload(File file, String contentType, String fileName, boolean doDownload); void write(HttpServletResponse response); }
FileDownload implements Download { public void write(HttpServletResponse response) throws IOException { inputDownload.write(response); } FileDownload(File file, String contentType, String fileName);  FileDownload(File file, String contentType);  FileDownload(File file, String contentType, String fileName, boolean doDownload); void write(HttpServletResponse response);  }