X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Ftest%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Ffcp%2FDeletePostCommandTest.kt;fp=src%2Ftest%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Ffcp%2FDeletePostCommandTest.kt;h=a2b41983c9a7b4b791c4f6786495b90d590cc3ed;hb=914d5522692e7714ba5bdefb002fedc8e293f5fc;hp=71e6eeea9e614b3e1104a81ff7bcb08ceededad4;hpb=b32c81368c80e92de1d9bc2e8fdb635d251ecfa2;p=Sone.git diff --git a/src/test/kotlin/net/pterodactylus/sone/fcp/DeletePostCommandTest.kt b/src/test/kotlin/net/pterodactylus/sone/fcp/DeletePostCommandTest.kt index 71e6eee..a2b4198 100644 --- a/src/test/kotlin/net/pterodactylus/sone/fcp/DeletePostCommandTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/fcp/DeletePostCommandTest.kt @@ -39,7 +39,7 @@ class DeletePostCommandTest : SoneCommandTest() { fun `request with post from remote sone returns error response`() { parameters.putSingle("Post", "RemotePostId") whenever(core.getPost("RemotePostId")).thenReturn(of(postFromRemoteSone)) - val response = command.execute(parameters, null, null) + val response = command.execute(parameters) assertThat(response.replyParameters["Message"], equalTo("Error")) assertThat(response.replyParameters["ErrorCode"], equalTo("401")) } @@ -48,7 +48,7 @@ class DeletePostCommandTest : SoneCommandTest() { fun `request with post from local sone deletes posts`() { parameters.putSingle("Post", "LocalPostId") whenever(core.getPost("LocalPostId")).thenReturn(of(postFromLocalSone)) - val response = command.execute(parameters, null, null) + val response = command.execute(parameters) assertThat(response.replyParameters["Message"], equalTo("PostDeleted")) verify(core).deletePost(postFromLocalSone) }