X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Ftest%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Ffcp%2FGetPostsCommandTest.kt;h=6483085cd4c02fcc5c0b5e4b4a6627204521bb01;hb=5f1c5eb4f05cc9c73aa2a9749e68b5cab68dcc2a;hp=007240aaf58f4a0d88510511f0891add443a9eb8;hpb=7522c3e795b53134beadd21c2e72fe48500bde6a;p=Sone.git diff --git a/src/test/kotlin/net/pterodactylus/sone/fcp/GetPostsCommandTest.kt b/src/test/kotlin/net/pterodactylus/sone/fcp/GetPostsCommandTest.kt index 007240a..6483085 100644 --- a/src/test/kotlin/net/pterodactylus/sone/fcp/GetPostsCommandTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/fcp/GetPostsCommandTest.kt @@ -2,8 +2,8 @@ package net.pterodactylus.sone.fcp import freenet.support.SimpleFieldSet import net.pterodactylus.sone.core.Core -import net.pterodactylus.sone.test.asOptional import net.pterodactylus.sone.test.whenever +import net.pterodactylus.sone.utils.asOptional import org.hamcrest.MatcherAssert.assertThat import org.hamcrest.Matchers.containsInAnyOrder import org.hamcrest.Matchers.equalTo @@ -52,7 +52,7 @@ class GetPostsCommandTest : SoneCommandTest() { whenever(core.getSone("LocalSone")).thenReturn(localSone.asOptional()) whenever(core.getSone("ValidSoneId")).thenReturn(remoteSone.asOptional()) whenever(remoteSone.posts).thenReturn(listOf(post2, post1)) - parameters.putSingle("Sone", "ValidSoneId") + parameters += "Sone" to "ValidSoneId" } private fun verifyFirstPost(replyParameters: SimpleFieldSet, index: Int = 0) {