Return nullable Post instead of Optional
[Sone.git] / src / test / kotlin / net / pterodactylus / sone / fcp / SoneCommandTest.kt
index 5397683..de92612 100644 (file)
@@ -39,7 +39,7 @@ abstract class SoneCommandTest {
        @Before
        fun setupCore() {
                whenever(core.getSone(anyString())).thenReturn(null)
-               whenever(core.getPost(anyString())).thenReturn(absent())
+               whenever(core.getPost(anyString())).thenReturn(null)
                whenever(core.getPostReply(anyString())).thenReturn(null)
        }