Skip to content

Commit

Permalink
Fix sonar issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ndkhanh-axonivy committed Jul 18, 2024
1 parent 538059e commit 436882d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ void testFindFeedbacks_ProductNotFound() {

when(productRepository.findById(productId)).thenReturn(Optional.empty());

assertThrows(NotFoundException.class, () -> feedbackService.findFeedbacks(productId, Pageable.unpaged()));
Pageable unpaged = Pageable.unpaged();

assertThrows(NotFoundException.class, () -> feedbackService.findFeedbacks(productId, unpaged));

verify(productRepository, times(1)).findById(productId);
verify(feedbackRepository, never()).searchByProductId(any(), any());
Expand Down

0 comments on commit 436882d

Please sign in to comment.