From: David ‘Bombe’ Roden Date: Tue, 6 Dec 2016 21:18:58 +0000 (+0100) Subject: Whitespace fixes X-Git-Tag: 0.9.7^2~371 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=8a6c37232a2b4973e31b4c0ea397d867c7e02c7a;p=Sone.git Whitespace fixes --- diff --git a/src/test/kotlin/net/pterodactylus/sone/web/DeleteReplyPageTest.kt b/src/test/kotlin/net/pterodactylus/sone/web/DeleteReplyPageTest.kt index ee6de04..1b202e4 100644 --- a/src/test/kotlin/net/pterodactylus/sone/web/DeleteReplyPageTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/web/DeleteReplyPageTest.kt @@ -30,10 +30,10 @@ class DeleteReplyPageTest : WebPageTest() { whenever(sone.isLocal).thenReturn(true) whenever(reply.sone).thenReturn(sone) } - + @Test fun `get request sets reply ID and return page in template context`() { - request("", GET) + request("", GET) addHttpRequestParameter("reply", "reply-id") addHttpRequestParameter("returnPage", "return.html") page.handleRequest(freenetRequest, templateContext) @@ -43,7 +43,7 @@ class DeleteReplyPageTest : WebPageTest() { @Test fun `post request without any action sets reply ID and return page in template context`() { - request("", POST) + request("", POST) addPostReply("reply-id", reply) addHttpRequestParameter("reply", "reply-id") addHttpRequestParameter("returnPage", "return.html") @@ -60,7 +60,7 @@ class DeleteReplyPageTest : WebPageTest() { @Test fun `trying to delete a reply from a non-local sone results in no permission page`() { - request("", POST) + request("", POST) addHttpRequestParameter("reply", "reply-id") whenever(sone.isLocal).thenReturn(false) addPostReply("reply-id", reply) @@ -69,7 +69,7 @@ class DeleteReplyPageTest : WebPageTest() { @Test fun `confirming deletion of reply deletes the reply and redirects to return page`() { - request("", POST) + request("", POST) addPostReply("reply-id", reply) addHttpRequestParameter("reply", "reply-id") addHttpRequestParameter("returnPage", "return.html") @@ -78,10 +78,10 @@ class DeleteReplyPageTest : WebPageTest() { verify(core).deleteReply(reply) } } - + @Test fun `aborting deletion of reply redirects to return page`() { - request("", POST) + request("", POST) addPostReply("reply-id", reply) addHttpRequestParameter("reply", "reply-id") addHttpRequestParameter("returnPage", "return.html") diff --git a/src/test/kotlin/net/pterodactylus/sone/web/DistrustPageTest.kt b/src/test/kotlin/net/pterodactylus/sone/web/DistrustPageTest.kt index 1b51a4f..b5af91a 100644 --- a/src/test/kotlin/net/pterodactylus/sone/web/DistrustPageTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/web/DistrustPageTest.kt @@ -18,20 +18,20 @@ class DistrustPageTest : WebPageTest() { @Test fun `get request does not redirect`() { - request("", GET) + request("", GET) page.handleRequest(freenetRequest, templateContext) } @Test fun `post request with invalid sone redirects to return page`() { - request("", POST) + request("", POST) addHttpRequestParameter("returnPage", "return.html") verifyRedirect("return.html") } @Test fun `post request with valid sone distrusts sone and redirects to return page`() { - request("", POST) + request("", POST) val remoteSone = mock() addSone("remote-sone-id", remoteSone) addHttpRequestParameter("returnPage", "return.html") diff --git a/src/test/kotlin/net/pterodactylus/sone/web/EditProfilePageTest.kt b/src/test/kotlin/net/pterodactylus/sone/web/EditProfilePageTest.kt index 0bdff69..36c83b7 100644 --- a/src/test/kotlin/net/pterodactylus/sone/web/EditProfilePageTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/web/EditProfilePageTest.kt @@ -175,7 +175,7 @@ class EditProfilePageTest : WebPageTest() { verify(currentSone).profile = profile } } - + @Test fun `moving an invalid field up redirects to the invalid page`() { request("", POST)