@Test public void testUntrackedNewFiles() throws IOException, JavaGitException { List<File> paths = null; GitStatusResponse response = gitStatus.status(repositoryDirectory, options, paths); int noOfUntrackedFiles = response.getUntrackedFilesSize(); assertEquals("Error.No of untracked files does not Match.", 3, noOfUntrackedFiles); assertEquals("Error. Filename does not match.", "foobar01", response.getFileFromUntrackedFiles(0).getName()); assertEquals("Error. Filename does not match.", "foobar02", response.getFileFromUntrackedFiles(1).getName()); assertEquals("Error. Filename does not match.", "testDirectory", response.getFileFromUntrackedFiles(2).getName()); }
public GitStatusResponse status(File repositoryPath, GitStatusOptions options, List<File> paths) throws JavaGitException, IOException { CheckUtilities.checkFileValidity(repositoryPath); IClient client = ClientManager.getInstance().getPreferredClient(); IGitStatus gitStatus = client.getGitStatusInstance(); return gitStatus.status(repositoryPath, options, paths); }
GitStatus { public GitStatusResponse status(File repositoryPath, GitStatusOptions options, List<File> paths) throws JavaGitException, IOException { CheckUtilities.checkFileValidity(repositoryPath); IClient client = ClientManager.getInstance().getPreferredClient(); IGitStatus gitStatus = client.getGitStatusInstance(); return gitStatus.status(repositoryPath, options, paths); } }
GitStatus { public GitStatusResponse status(File repositoryPath, GitStatusOptions options, List<File> paths) throws JavaGitException, IOException { CheckUtilities.checkFileValidity(repositoryPath); IClient client = ClientManager.getInstance().getPreferredClient(); IGitStatus gitStatus = client.getGitStatusInstance(); return gitStatus.status(repositoryPath, options, paths); }  }
GitStatus { public GitStatusResponse status(File repositoryPath, GitStatusOptions options, List<File> paths) throws JavaGitException, IOException { CheckUtilities.checkFileValidity(repositoryPath); IClient client = ClientManager.getInstance().getPreferredClient(); IGitStatus gitStatus = client.getGitStatusInstance(); return gitStatus.status(repositoryPath, options, paths); }  GitStatusResponse status(File repositoryPath, GitStatusOptions options, List<File> paths); GitStatusResponse status(File repositoryPath, List<File> paths); GitStatusResponse status(File repositoryPath, GitStatusOptions options); GitStatusResponse status(File repositoryPath, GitStatusOptions options, File file); GitStatusResponse status(File repositoryPath); GitStatusResponse statusAll(File repositoryPath); GitStatusResponse getSingleFileStatus(File repositoryPath, File path); GitFileSystemObject.Status getFileStatus(File repositoryPath, File path); }
GitStatus { public GitStatusResponse status(File repositoryPath, GitStatusOptions options, List<File> paths) throws JavaGitException, IOException { CheckUtilities.checkFileValidity(repositoryPath); IClient client = ClientManager.getInstance().getPreferredClient(); IGitStatus gitStatus = client.getGitStatusInstance(); return gitStatus.status(repositoryPath, options, paths); }  GitStatusResponse status(File repositoryPath, GitStatusOptions options, List<File> paths); GitStatusResponse status(File repositoryPath, List<File> paths); GitStatusResponse status(File repositoryPath, GitStatusOptions options); GitStatusResponse status(File repositoryPath, GitStatusOptions options, File file); GitStatusResponse status(File repositoryPath); GitStatusResponse statusAll(File repositoryPath); GitStatusResponse getSingleFileStatus(File repositoryPath, File path); GitFileSystemObject.Status getFileStatus(File repositoryPath, File path);  }