### Question:
App { public List<RevCommit> getRevCommitsOfRawDockerfile(String repoFolderNameDotGit, String relativePathToDockerfile) throws IOException, GitAPIException { GitHistoryFilter gitHistoryFilter = new GitHistoryFilter(); Repository repository = gitHistoryFilter.getRepository(repoFolderNameDotGit); Git git = new Git(repository); return gitHistoryFilter.getDockerfileCommitHistory(repoFolderNameDotGit, relativePathToDockerfile); } App(String gitUrl, String gitHubUserName, String gitHubPassword);  App(String gitUrl); static void main(String[] args); List<Dockerfile> getDockerfileObjectsFromRawDockerfiles(List<File> rawDockerfiles); static void createJsonFromProjectObjectAndPrint(Project project, boolean printJson); Dockerfile getDockerfileObjectFromRawDockerfile(File rawDockerfile); void setDiffsBetweenSnapshots(List<Snapshot> snapshots); List<RevCommit> getRevCommitsOfRawDockerfile(String repoFolderNameDotGit, String relativePathToDockerfile); List<Snapshot> getSnapshotsFromRevCommits(List<RevCommit> historyOfFile); Snapshot getFullSnapshotFromRevCommit(RevCommit commit, boolean isCurrent, int index, Repository repository, Git git); List<ChangedFile> getChangedFilesForCommit(RevCommit commit); List<File> getDockerFilesFromGitRepository(String repoPath); String getRelativePathToDockerFile(String absolutePath); File getDockerfileFromCommit(RevCommit revCommit, Repository repository, String dockerPath, String localPath); void init(String gitUrl); Project getProjectFromGitUrl(); final static String LOCAL_REPO_FOLDER; final static String GITAPI; final static String REPOS; static String USERNAME; static String PASSWORD; }### Answer:
@Test public void getRevCommitsOfRawDockerfile() throws Exception { App app = appToBeTested; List<File> rawDockerfiles = rawDockerfilesToBeTested; File rawDockerfile = rawDockerfiles.get(0); app.setRelativePathToDockerfile(app.getRelativePathToDockerFile(rawDockerfile.getPath())); List<RevCommit> revCommits = app.getRevCommitsOfRawDockerfile(app.getRepoFolderNameDotGit(), app.getRelativePathToDockerfile()); assertEquals(revCommits.size(),7); }