Replace Sone provider interface with Kotlin version
[Sone.git] / src / test / kotlin / net / pterodactylus / sone / fcp / LikeReplyCommandTest.kt
index 69ace0a..8705815 100644 (file)
@@ -25,8 +25,8 @@ class LikeReplyCommandTest : SoneCommandTest() {
        @Before
        fun setupRepliesAndSones() {
                whenever(core.getPostReply("ReplyId")).thenReturn(reply.asOptional())
-               whenever(core.getSone("RemoteSoneId")).thenReturn(remoteSone.asOptional())
-               whenever(core.getSone("LocalSoneId")).thenReturn(localSone.asOptional())
+               whenever(core.getSone("RemoteSoneId")).thenReturn(remoteSone)
+               whenever(core.getSone("LocalSoneId")).thenReturn(localSone)
        }
 
        @Test