X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Ftest%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Ffcp%2FLikeReplyCommandTest.kt;h=54d0c4d6db2405ae9f60a555698fc364f297f5b6;hp=8705815014e8af1154f562fe07603cff33c45524;hb=5ab6ee01df9bac0c7bd5d27a6990dfdf60555d0f;hpb=8e313509a42a8c638fcac018dd73dd975bf9cb68 diff --git a/src/test/kotlin/net/pterodactylus/sone/fcp/LikeReplyCommandTest.kt b/src/test/kotlin/net/pterodactylus/sone/fcp/LikeReplyCommandTest.kt index 8705815..54d0c4d 100644 --- a/src/test/kotlin/net/pterodactylus/sone/fcp/LikeReplyCommandTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/fcp/LikeReplyCommandTest.kt @@ -24,14 +24,14 @@ class LikeReplyCommandTest : SoneCommandTest() { @Before fun setupRepliesAndSones() { - whenever(core.getPostReply("ReplyId")).thenReturn(reply.asOptional()) + whenever(core.getPostReply("ReplyId")).thenReturn(reply) whenever(core.getSone("RemoteSoneId")).thenReturn(remoteSone) whenever(core.getSone("LocalSoneId")).thenReturn(localSone) } @Test fun `command requires write access`() { - assertThat(command.requiresWriteAccess(), equalTo(true)) + assertThat(command.requiresWriteAccess, equalTo(true)) } @Test