Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
ntqdinh-axonivy committed Sep 12, 2024
1 parent a2925b7 commit dfb4bb8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ void testSyncProductsFirstTime() throws IOException {
verify(productRepository).save(argumentCaptor.capture());

assertThat(argumentCaptorProductModuleContent.getValue()).usingRecursiveComparison()
.isEqualTo(mockReadmeProductContent());
.isEqualTo(mockReadmeProductContent());
}

@Test
Expand Down Expand Up @@ -434,9 +434,9 @@ void testSyncProductsSecondTimeWithDuplicatedContent() throws IOException {
mockReturnProductContent.setTag(secondTag);

when(ghAxonIvyProductRepoService.getReadmeAndProductContentsFromTag(any(), any(), eq(firstTag)))
.thenReturn(mockReturnProductContent);
.thenReturn(mockReturnProductContent);
when(ghAxonIvyProductRepoService.getReadmeAndProductContentsFromTag(any(), any(), eq(secondTag)))
.thenReturn(mockReturnProductContent2);
.thenReturn(mockReturnProductContent2);

when(productModuleContentRepository.existsByProductIdAndTag("amazon", firstTag)).thenReturn(true);
when(productModuleContentRepository.existsByProductIdAndTag("amazon", secondTag)).thenReturn(false);
Expand All @@ -446,7 +446,7 @@ void testSyncProductsSecondTimeWithDuplicatedContent() throws IOException {

verify(productModuleContentRepository).save(argumentCaptorProductModuleContent.capture());
assertThat(argumentCaptorProductModuleContent.getValue()).usingRecursiveComparison()
.isEqualTo(mockReturnProductContent);
.isEqualTo(mockReturnProductContent);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,5 @@ void testGetReleaseTagsFromProduct() {
mockProduct.setReleasedVersions(releasedVersions);

Assertions.assertEquals(releasedVersions.get(0), VersionUtils.getReleaseTagsFromProduct(mockProduct).get(0));


}
}

0 comments on commit dfb4bb8

Please sign in to comment.