X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Ftest%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Ffcp%2FCreateReplyCommandTest.kt;h=a6e69cddaf54e969c4c5c50f264856d376c6e3b7;hb=fd32e307db87c617a4c455f592b6e649ec50ae8a;hp=f464de4dab6c77d445b980d93f17423c6d60abd3;hpb=c088dd5a2896d777cc30c5676583782bfa923729;p=Sone.git diff --git a/src/test/kotlin/net/pterodactylus/sone/fcp/CreateReplyCommandTest.kt b/src/test/kotlin/net/pterodactylus/sone/fcp/CreateReplyCommandTest.kt index f464de4..a6e69cd 100644 --- a/src/test/kotlin/net/pterodactylus/sone/fcp/CreateReplyCommandTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/fcp/CreateReplyCommandTest.kt @@ -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