GitAdd { public GitAddResponse add(File repositoryPath, GitAddOptions options, List<File> paths) throws IOException, JavaGitException { CheckUtilities.checkFileValidity(repositoryPath.getAbsoluteFile()); IClient client = ClientManager.getInstance().getPreferredClient(); IGitAdd gitAdd = client.getGitAddInstance(); return gitAdd.add(repositoryPath, options, paths); }  GitAddResponse add(File repositoryPath, GitAddOptions options, List<File> paths); GitAddResponse addVerbose(File repositoryPath, List<File> paths); GitAddResponse addWithForce(File repositoryPath, List<File> paths); GitAddResponse addDryRun(File repositoryPath, List<File> paths); GitAddResponse add(File repositoryPath, GitAddOptions options, File file); GitAddResponse add(File repositoryPath, File file); GitAddResponse add(File repositoryPath, List<File> paths);  }
@Test public void testAddingOneFileToRepositoryBlanksInPath() throws IOException, JavaGitException { File file1 = FileUtilities.createFile(repoDirectory, "file A.txt", "This is file fileA.txt"); gitAdd.add(repoDirectory, file1); GitStatusResponse statusResponse = gitStatus.status(repoDirectory); assertEquals("File to commit", 1, statusResponse.getNewFilesToCommitSize()); assertEquals("Wrong path, ", repoDirectory.getAbsolutePath() + File.separator + "file A.txt",statusResponse.getNewFilesToCommit().iterator().next().getAbsolutePath() ); }