From: David ‘Bombe’ Roden Date: Mon, 19 Jun 2017 21:46:13 +0000 (+0200) Subject: Convert delete Sone page test to use new web page test base X-Git-Tag: 0.9.7^2~126 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=3b3654796e0b84d3f16335132badcc97cf5714e7;p=Sone.git Convert delete Sone page test to use new web page test base --- diff --git a/src/test/kotlin/net/pterodactylus/sone/web/pages/DeleteSonePageTest.kt b/src/test/kotlin/net/pterodactylus/sone/web/pages/DeleteSonePageTest.kt index 92c682d..5d73338 100644 --- a/src/test/kotlin/net/pterodactylus/sone/web/pages/DeleteSonePageTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/web/pages/DeleteSonePageTest.kt @@ -12,11 +12,7 @@ import org.mockito.Mockito.verify /** * Unit test for [DeleteSonePage]. */ -class DeleteSonePageTest : WebPageTest() { - - private val page = DeleteSonePage(template, webInterface) - - override fun getPage() = page +class DeleteSonePageTest: WebPageTest2(::DeleteSonePage) { @Test fun `page returns correct path`() {