From: David ‘Bombe’ Roden Date: Mon, 19 Jun 2017 09:08:14 +0000 (+0200) Subject: Convert index page test to use new web page test base X-Git-Tag: 0.9.7^2~137 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=0c3bfecaac152ca7a6de28dad227858a6901638f;p=Sone.git Convert index page test to use new web page test base --- diff --git a/src/test/kotlin/net/pterodactylus/sone/web/pages/IndexPageTest.kt b/src/test/kotlin/net/pterodactylus/sone/web/pages/IndexPageTest.kt index d544912..ead3cbb 100644 --- a/src/test/kotlin/net/pterodactylus/sone/web/pages/IndexPageTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/web/pages/IndexPageTest.kt @@ -19,10 +19,11 @@ import org.mockito.ArgumentMatchers /** * Unit test for [IndexPage]. */ -class IndexPageTest : WebPageTest() { +class IndexPageTest: WebPageTest2({ template, webInterface -> IndexPage(template, webInterface, postVisibilityFilter) }) { - private val postVisibilityFilter = mock() - private val page = IndexPage(template, webInterface, postVisibilityFilter) + companion object { + private val postVisibilityFilter = mock() + } @Test fun `page returns correct path`() {