X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Ftest%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fpages%2FCreateSonePageTest.kt;h=04ed0aaf85e7cb2bbf936a630bb023dc325c6a59;hb=2d2f89a8dc40e68ee4ce747074c4c518ac2b246f;hp=f14d536fc98074b5e480fca1e1978994f7a9c924;hpb=de7568a82eb4150bf6d2b0553841b7b69f84c968;p=Sone.git diff --git a/src/test/kotlin/net/pterodactylus/sone/web/pages/CreateSonePageTest.kt b/src/test/kotlin/net/pterodactylus/sone/web/pages/CreateSonePageTest.kt index f14d536..04ed0aa 100644 --- a/src/test/kotlin/net/pterodactylus/sone/web/pages/CreateSonePageTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/web/pages/CreateSonePageTest.kt @@ -86,7 +86,7 @@ class CreateSonePageTest: WebPageTest() { fun `sone is created and logged in`() { addExistingOwnIdentities() request("", POST) - addHttpRequestParameter("identity", "own-id-3") + addHttpRequestPart("identity", "own-id-3") val newSone = mock() whenever(core.createSone(ownIdentities_[2])).thenReturn(newSone) verifyRedirect("index.html") { @@ -106,7 +106,7 @@ class CreateSonePageTest: WebPageTest() { fun `if sone is not created user is still redirected to index`() { addExistingOwnIdentities() request("", POST) - addHttpRequestParameter("identity", "own-id-3") + addHttpRequestPart("identity", "own-id-3") whenever(core.createSone(ownIdentities_[2])).thenReturn(null) verifyRedirect("index.html") { verify(core).createSone(ownIdentities_[2])