test: テストを修正

This commit is contained in:
usbharu 2023-12-11 18:08:32 +09:00
parent bbd7754385
commit 1eaac1247a
1 changed files with 2 additions and 3 deletions

View File

@ -39,6 +39,7 @@ class ActorServiceTest {
mock(),
actorBuilder,
testApplicationConfig,
mock(),
mock()
)
userService.createLocalUser(UserCreateDto("test", "testUser", "XXXXXXXXXXXXX", "test"))
@ -48,7 +49,6 @@ class ActorServiceTest {
assertEquals("test", firstValue.name)
assertEquals("testUser", firstValue.screenName)
assertEquals("XXXXXXXXXXXXX", firstValue.description)
assertEquals("hashedPassword", firstValue.password)
assertEquals(110001L, firstValue.id)
assertEquals("https://example.com/users/test", firstValue.url)
assertEquals("example.com", firstValue.domain)
@ -66,7 +66,7 @@ class ActorServiceTest {
onBlocking { nextId() } doReturn 113345L
}
val userService =
UserServiceImpl(actorRepository, mock(), mock(), actorBuilder, testApplicationConfig, mock())
UserServiceImpl(actorRepository, mock(), mock(), actorBuilder, testApplicationConfig, mock(), mock())
val user = RemoteUserCreateDto(
name = "test",
domain = "remote.example.com",
@ -88,7 +88,6 @@ class ActorServiceTest {
assertEquals("test", firstValue.name)
assertEquals("testUser", firstValue.screenName)
assertEquals("test user", firstValue.description)
assertNull(firstValue.password)
assertEquals(113345L, firstValue.id)
assertEquals("https://remote.example.com", firstValue.url)
assertEquals("remote.example.com", firstValue.domain)