From: David ‘Bombe’ Roden Date: Mon, 19 Jun 2017 08:46:21 +0000 (+0200) Subject: Convert mark as known page test to use new web page test base X-Git-Tag: 0.9.7^2~143 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=a17f973e4773c0f77882a30c04f9b3a30390e148;p=Sone.git Convert mark as known page test to use new web page test base --- diff --git a/src/test/kotlin/net/pterodactylus/sone/web/pages/MarkAsKnownPageTest.kt b/src/test/kotlin/net/pterodactylus/sone/web/pages/MarkAsKnownPageTest.kt index 1e62a81..3744b5b 100644 --- a/src/test/kotlin/net/pterodactylus/sone/web/pages/MarkAsKnownPageTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/web/pages/MarkAsKnownPageTest.kt @@ -13,11 +13,7 @@ import org.mockito.Mockito.verify /** * Unit test for [MarkAsKnownPage]. */ -class MarkAsKnownPageTest: WebPageTest() { - - private val page = MarkAsKnownPage(template, webInterface) - - override fun getPage() = page +class MarkAsKnownPageTest: WebPageTest2(::MarkAsKnownPage) { @Test fun `page returns correct path`() {