@Test(expected = IllegalArgumentException.class) public void existFolderNameInParentDirectoryPathShouldThrowIllegalArgumentExceptionWhenParentDirectoryPathIsNull() throws IOException { folderHandler.existFolderNameInParentDirectoryPath(FOLDER_NAME_ACTUAL, null); }
public boolean existFolderNameInParentDirectoryPath(String folderName, String parentDirectoryPath) throws IOException { Assert.notNull(parentDirectoryPath); Assert.notNull(folderName); File parentDirectory = new File(parentDirectoryPath); if (!parentDirectory.exists()) { throw new IOException(); } return new File(parentDirectoryPath + File.separator + folderName).exists(); }
FolderHandler { public boolean existFolderNameInParentDirectoryPath(String folderName, String parentDirectoryPath) throws IOException { Assert.notNull(parentDirectoryPath); Assert.notNull(folderName); File parentDirectory = new File(parentDirectoryPath); if (!parentDirectory.exists()) { throw new IOException(); } return new File(parentDirectoryPath + File.separator + folderName).exists(); } }
FolderHandler { public boolean existFolderNameInParentDirectoryPath(String folderName, String parentDirectoryPath) throws IOException { Assert.notNull(parentDirectoryPath); Assert.notNull(folderName); File parentDirectory = new File(parentDirectoryPath); if (!parentDirectory.exists()) { throw new IOException(); } return new File(parentDirectoryPath + File.separator + folderName).exists(); }  }
FolderHandler { public boolean existFolderNameInParentDirectoryPath(String folderName, String parentDirectoryPath) throws IOException { Assert.notNull(parentDirectoryPath); Assert.notNull(folderName); File parentDirectory = new File(parentDirectoryPath); if (!parentDirectory.exists()) { throw new IOException(); } return new File(parentDirectoryPath + File.separator + folderName).exists(); }  void createFolderInParentDirectoryPath(String folderName, String parentDirectoryPath); boolean existFolderNameInParentDirectoryPath(String folderName, String parentDirectoryPath); }
FolderHandler { public boolean existFolderNameInParentDirectoryPath(String folderName, String parentDirectoryPath) throws IOException { Assert.notNull(parentDirectoryPath); Assert.notNull(folderName); File parentDirectory = new File(parentDirectoryPath); if (!parentDirectory.exists()) { throw new IOException(); } return new File(parentDirectoryPath + File.separator + folderName).exists(); }  void createFolderInParentDirectoryPath(String folderName, String parentDirectoryPath); boolean existFolderNameInParentDirectoryPath(String folderName, String parentDirectoryPath);  }