Replace AbstractSoneCommand with Kotlin version
[Sone.git] / src / test / kotlin / net / pterodactylus / sone / fcp / CreateReplyCommandTest.kt
index 5b4809c..1cd53a5 100644 (file)
@@ -21,7 +21,7 @@ class CreateReplyCommandTest : SoneCommandTest() {
 
        @Test
        fun `command requires write access`() {
-               assertThat(command.requiresWriteAccess(), equalTo(true))
+               assertThat(command.requiresWriteAccess, equalTo(true))
        }
 
        @Test
@@ -64,7 +64,7 @@ class CreateReplyCommandTest : SoneCommandTest() {
 
        private fun addValidPostParameter() {
                parameters += "Post" to "ValidPostId"
-               whenever(core.getPost("ValidPostId")).thenReturn(of(post))
+               whenever(core.getPost("ValidPostId")).thenReturn(post)
        }
 
        @Test