Skip to content

Commit

Permalink
Fix sonarQube
Browse files Browse the repository at this point in the history
  • Loading branch information
phhung-axonivy committed Dec 12, 2024
1 parent 3a10eb7 commit 5cb3e4d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ void testSyncFirstPublishedDateWithGettingTagCommitFailed() throws IOException {
List<GHTag> tags = Arrays.asList(ghTag);
GHCommit ghCommit = mock(GHCommit.class);
when(ghTag.getCommit()).thenReturn(ghCommit);
when(ghTag.getCommit().getCommitDate()).thenThrow(
when(ghCommit.getCommitDate()).thenThrow(
new IOException("get commit date of tag commit failed!"));
when(gitHubService.getRepositoryTags(SAMPLE_PRODUCT_REPOSITORY_NAME)).thenReturn(tags);
assertTrue(productService.syncFirstPublishedDateOfAllProducts());
Expand Down

0 comments on commit 5cb3e4d

Please sign in to comment.