Skip to content

Commit

Permalink
Standardize names of test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
logical-1985516 committed Oct 3, 2024
1 parent edbc273 commit 8a78498
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/java/reposense/git/GitBlameTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public void blameLine_nonExistentLine_throwsRunTimeException() {
}

@Test
public void blameFile_allValidArguments_success() {
public void blameFile_validFile_success() {
List<GitBlameLineInfo> expectedLineInfos = new ArrayList<>();
expectedLineInfos.add(new GitBlameLineInfo("8d0ac2ee20f04dce8df0591caed460bffacb65a4",
MAIN_AUTHOR_NAME, "ma.tanghao@dhs.sg", 1517863105));
Expand All @@ -97,7 +97,7 @@ public void blameFile_allValidArguments_success() {
}

@Test
public void blameFile_allValidArgumentsWithPreviousAuthors_success() {
public void blameFile_withPreviousAuthors_validFile_success() {
config.setBranch(TEST_REPO_BLAME_WITH_PREVIOUS_AUTHORS_BRANCH);
GitCheckout.checkoutBranch(config.getRepoRoot(), TEST_REPO_BLAME_WITH_PREVIOUS_AUTHORS_BRANCH);
createTestIgnoreRevsFile(AUTHOR_TO_IGNORE_BLAME_COMMIT_LIST_07082021);
Expand All @@ -122,7 +122,7 @@ public void blameFile_nonExistentFile_throwsRunTimeException() {
}

@Test
public void blameFile_nonExistentFileWithPreviousAuthors_throwsRunTimeException() {
public void blameFile_withPreviousAuthors_nonExistentFile_throwsRunTimeException() {
Assertions.assertThrows(RuntimeException.class, () -> GitBlame.blameFile(config.getRepoRoot(),
"nonExistentFile", true));
}
Expand Down

0 comments on commit 8a78498

Please sign in to comment.