Return a nullable PostReply instead of an Optional
[Sone.git] / src / test / kotlin / net / pterodactylus / sone / fcp / LikeReplyCommandTest.kt
index 8705815..7b9256a 100644 (file)
@@ -24,7 +24,7 @@ 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)
        }