### Question:
App { public List<ChangedFile> getChangedFilesForCommit(RevCommit commit) throws IOException, GitAPIException { List<ChangedFile> changedFiles = new ArrayList<>(); int rangeSize = 6; int lowerIntervall = (-1) * (rangeSize / 2); int upperIntervall = (rangeSize / 2) + 1; for (int i = lowerIntervall; i < upperIntervall; i++) { CommitProcessor commitProcessor = new CommitProcessor(); List<ChangedFile> tempChangedFiles = commitProcessor.getChangedFilesWithinCommit(commit, repository, rangeSize, i, git, project.getRepositoryPath()); if (i < 0 && tempChangedFiles.size() > 0) { String hek = ""; } tempChangedFiles.forEach(x -> changedFiles.add(x)); } return changedFiles; } 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 getChangedFilesForCommit() throws ParseException, IOException, GitAPIException { App app = appToBeTested; RevCommit commit = revCommitsToBeTested.get(0); List<ChangedFile> changedFiles = app.getChangedFilesForCommit(commit); assertEquals(changedFiles.size(),31); }