Replace Sone provider interface with Kotlin version
[Sone.git] / src / test / kotlin / net / pterodactylus / sone / fcp / LikePostCommandTest.kt
index 54f784f..b344f51 100644 (file)
@@ -24,8 +24,8 @@ class LikePostCommandTest : SoneCommandTest() {
        @Before
        fun setupPostAndSones() {
                whenever(core.getPost("PostId")).thenReturn(post.asOptional())
        @Before
        fun setupPostAndSones() {
                whenever(core.getPost("PostId")).thenReturn(post.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
        }
 
        @Test