From: David ‘Bombe’ Roden Date: Tue, 20 Jun 2017 12:25:48 +0000 (+0200) Subject: Convert delete post page test to use new web page test base X-Git-Tag: 0.9.7^2~123 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=e9719bd55f3b9e62e16643c697f286a84f6ccabb;p=Sone.git Convert delete post page test to use new web page test base --- diff --git a/src/test/kotlin/net/pterodactylus/sone/web/pages/DeletePostPageTest.kt b/src/test/kotlin/net/pterodactylus/sone/web/pages/DeletePostPageTest.kt index 25a4728..383e38c 100644 --- a/src/test/kotlin/net/pterodactylus/sone/web/pages/DeletePostPageTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/web/pages/DeletePostPageTest.kt @@ -15,15 +15,11 @@ import org.mockito.Mockito.verify /** * Unit test for [DeletePostPage]. */ -class DeletePostPageTest : WebPageTest() { - - private val page = DeletePostPage(template, webInterface) +class DeletePostPageTest: WebPageTest2(::DeletePostPage) { private val post = mock() private val sone = mock() - override fun getPage() = page - @Before fun setupPost() { whenever(post.sone).thenReturn(sone)