Replace AbstractSoneCommand with Kotlin version
[Sone.git] / src / test / kotlin / net / pterodactylus / sone / fcp / CreateReplyCommandTest.kt
index f464de4..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
@@ -46,7 +46,7 @@ class CreateReplyCommandTest : SoneCommandTest() {
 
        private fun addValidLocalSoneParameter() {
                parameters += "Sone" to "LocalSoneId"
-               whenever(core.getSone("LocalSoneId")).thenReturn(of(localSone))
+               whenever(core.getSone("LocalSoneId")).thenReturn(localSone)
        }
 
        @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