Skip to content

Commit

Permalink
switch to jdk 8 methods
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyBlaise99 committed Aug 24, 2023
1 parent 97f1966 commit 971cc80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import java.time.LocalDateTime;
import java.time.Month;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

import org.junit.jupiter.api.Assertions;
Expand Down Expand Up @@ -99,7 +101,7 @@ public void analyzeAuthorship_beforeSinceDate_success() {

@Test
public void analyzeAuthorship_insideIgnoreCommitList_success() {
config.setIgnoreCommitList(List.of(IGNORE_HASH));
config.setIgnoreCommitList(Arrays.asList(IGNORE_HASH));

FileInfo fileInfo = analyzeTextFile(TEST_FILENAME);

Expand Down Expand Up @@ -129,7 +131,7 @@ public void analyzeAuthorship_matchesIgnoreGlob_success() {
Author fakeAuthor = config.getAuthor("fakeAuthor", "");

// File was renamed analyzeAuthorshipTest2.java -> analyzeAuthorshipTest1.java, ignore previous file name
fakeAuthor.importIgnoreGlobList(List.of(TEST2_FILENAME));
fakeAuthor.importIgnoreGlobList(Arrays.asList(TEST2_FILENAME));

FileInfo fileInfo = analyzeTextFile(TEST1_FILENAME);

Expand Down
2 changes: 1 addition & 1 deletion src/test/java/reposense/template/GitTestTemplate.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class GitTestTemplate {
protected static final String TEST_COMMIT_HASH_PARENT = "c5a6dc774e22099cd9ddeb0faff1e75f9cf4f151";
protected static final String SECOND_COMMIT_HASH = "05310e79fe8e54c5096bacc97b886ab24304d12b";
protected static final String MERGE_COMMIT_HASH = "7937ff5334ee45cb51e8cfd83a2237d33568a20c";
protected static final List<String> MERGE_COMMIT_PARENTS_HASHES = List.of(
protected static final List<String> MERGE_COMMIT_PARENTS_HASHES = Arrays.asList(
"22aec0be218b0c71065e65460ab48a2d95c8c681", "271bfbb0f0624481825abd812ff1d27768f9aba0");
protected static final String MAIN_AUTHOR_NAME = "harryggg";
protected static final String FAKE_AUTHOR_NAME = "fakeAuthor";
Expand Down

0 comments on commit 971cc80

Please sign in to comment.