Skip to content

Commit

Permalink
Update UserControllerTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Fixi12 authored Jan 31, 2025
1 parent db65304 commit df5e275
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ void testAddNewUser() {
verify(userRepository, times(1)).save(any(User.class));
}

@Test
void testGetAllUsers() {
when(userRepository.findAll()).thenReturn(Collections.singletonList(new User()));
// @Test
// void testGetAllUsers() {
// when(userRepository.findAll()).thenReturn(Collections.singletonList(new User()));

Iterable<User> result = userController.getAllUsers();
// Iterable<User> result = userController.getAllUsers();

assertEquals(1, ((List<User>) result).size());
}
// assertEquals(1, ((List<User>) result).size());
// }

@Test
void testGetUserById() {
Expand Down

0 comments on commit df5e275

Please sign in to comment.