@Test(expected = IllegalArgumentException.class) public void getFileByParentDirectoryPathAndFolderNameAndFilenameShouldThrowIllegalArgumentExceptionWhenFilenameIsNull() { fileHandler.getFileByParentDirectoryPathAndFolderNameAndFilename(FOLDER_NAME_PARENT, FOLDER_NAME_ACTUAL, null); }
public File getFileByParentDirectoryPathAndFolderNameAndFilename(String parentDirectoryPath, String folderName, String filename) { Assert.notNull(parentDirectoryPath); Assert.notNull(folderName); Assert.notNull(filename); return new File(parentDirectoryPath + File.separator + folderName + File.separator + filename); }
FileHandler { public File getFileByParentDirectoryPathAndFolderNameAndFilename(String parentDirectoryPath, String folderName, String filename) { Assert.notNull(parentDirectoryPath); Assert.notNull(folderName); Assert.notNull(filename); return new File(parentDirectoryPath + File.separator + folderName + File.separator + filename); } }
FileHandler { public File getFileByParentDirectoryPathAndFolderNameAndFilename(String parentDirectoryPath, String folderName, String filename) { Assert.notNull(parentDirectoryPath); Assert.notNull(folderName); Assert.notNull(filename); return new File(parentDirectoryPath + File.separator + folderName + File.separator + filename); }  }
FileHandler { public File getFileByParentDirectoryPathAndFolderNameAndFilename(String parentDirectoryPath, String folderName, String filename) { Assert.notNull(parentDirectoryPath); Assert.notNull(folderName); Assert.notNull(filename); return new File(parentDirectoryPath + File.separator + folderName + File.separator + filename); }  File getFileByParentDirectoryPathAndFolderNameAndFilename(String parentDirectoryPath,
                                                                   String folderName,
                                                                   String filename); }
FileHandler { public File getFileByParentDirectoryPathAndFolderNameAndFilename(String parentDirectoryPath, String folderName, String filename) { Assert.notNull(parentDirectoryPath); Assert.notNull(folderName); Assert.notNull(filename); return new File(parentDirectoryPath + File.separator + folderName + File.separator + filename); }  File getFileByParentDirectoryPathAndFolderNameAndFilename(String parentDirectoryPath,
                                                                   String folderName,
                                                                   String filename);  }