Commit 4f17ad9f authored by Jakub Balga's avatar Jakub Balga
Browse files

small edit

parent 1efa4fc9
Pipeline #131960 passed with stages
in 1 minute and 55 seconds
...@@ -43,8 +43,8 @@ public class UserTests extends PersistenceServiceTestBase<UserDto, User> { ...@@ -43,8 +43,8 @@ public class UserTests extends PersistenceServiceTestBase<UserDto, User> {
@Test @Test
void testGetAllByRole() { void testGetAllByRole() {
Mockito.when((userDao).getAll(UserRoleType.ADMIN)).thenReturn(List.of(getTestEntity())); Mockito.when(((UserDao)getMockedDao()).getAll(UserRoleType.ADMIN)).thenReturn(List.of(getTestEntity()));
userService = new UserServiceImpl(userDao, userEntityMapper); getPersistenceService();
var dto = userService.getAll(UserRoleType.ADMIN); var dto = userService.getAll(UserRoleType.ADMIN);
assertThat(equals(dto.get(0), getTestEntity())).isTrue(); assertThat(equals(dto.get(0), getTestEntity())).isTrue();
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment