From: David ‘Bombe’ Roden Date: Sun, 18 Jun 2017 21:09:49 +0000 (+0200) Subject: Convert unbookmark page test to use new web page test base X-Git-Tag: 0.9.7^2~154 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=fd178d2ae6906b14313b792a3efcc7d79713a91b;p=Sone.git Convert unbookmark page test to use new web page test base --- diff --git a/src/test/kotlin/net/pterodactylus/sone/web/pages/UnbookmarkPageTest.kt b/src/test/kotlin/net/pterodactylus/sone/web/pages/UnbookmarkPageTest.kt index fddc9a3..5bf7f85 100644 --- a/src/test/kotlin/net/pterodactylus/sone/web/pages/UnbookmarkPageTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/web/pages/UnbookmarkPageTest.kt @@ -17,11 +17,7 @@ import org.mockito.Mockito.verify /** * Unit test for [UnbookmarkPage]. */ -class UnbookmarkPageTest: WebPageTest() { - - private val page = UnbookmarkPage(template, webInterface) - - override fun getPage() = page +class UnbookmarkPageTest: WebPageTest2(::UnbookmarkPage) { @Test fun `page returns correct path`() {