Skip to content

Commit

Permalink
fix EndorsementListServiceTest
Browse files Browse the repository at this point in the history
  • Loading branch information
bhtibrewal committed Dec 30, 2023
1 parent 5742947 commit c5a09ca
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ void testCreateEndorsementListEntry() {
UserModel mockUser = new UserModel();
mockUser.setId(endorserId);

EndorsementModel mockEndorsement = new EndorsementModel();
mockEndorsement.setId(endorsementId);
EndorsementModel mockEndorsement = EndorsementModel.builder()
.id(endorsementId)
.build();

// Mock the repository behavior
when(userRepository.findById(endorserId)).thenReturn(Optional.of(mockUser));
Expand Down

0 comments on commit c5a09ca

Please sign in to comment.