From: David ‘Bombe’ Roden Date: Mon, 19 Jun 2017 08:45:00 +0000 (+0200) Subject: Convert new page test to use new web page test base X-Git-Tag: 0.9.7^2~144 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=d900e39e509569a00ced116704cae977afb11e75;p=Sone.git Convert new page test to use new web page test base --- diff --git a/src/test/kotlin/net/pterodactylus/sone/web/pages/NewPageTest.kt b/src/test/kotlin/net/pterodactylus/sone/web/pages/NewPageTest.kt index 67f7811..fb4f46d 100644 --- a/src/test/kotlin/net/pterodactylus/sone/web/pages/NewPageTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/web/pages/NewPageTest.kt @@ -17,11 +17,7 @@ import java.util.Arrays.asList /** * Unit test for [NewPage]. */ -class NewPageTest: WebPageTest() { - - private val page = NewPage(template, webInterface) - - override fun getPage() = page +class NewPageTest: WebPageTest2(::NewPage) { @Before fun setupNumberOfPostsPerPage() {