From: David ‘Bombe’ Roden Date: Mon, 19 Jun 2017 08:28:50 +0000 (+0200) Subject: Convert rescue page test to use new web page test base X-Git-Tag: 0.9.7^2~148 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=1bbb31e512f02d0add1490201a52d477da427524;p=Sone.git Convert rescue page test to use new web page test base --- diff --git a/src/test/kotlin/net/pterodactylus/sone/web/pages/RescuePageTest.kt b/src/test/kotlin/net/pterodactylus/sone/web/pages/RescuePageTest.kt index 1f62a92..b6da751 100644 --- a/src/test/kotlin/net/pterodactylus/sone/web/pages/RescuePageTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/web/pages/RescuePageTest.kt @@ -15,14 +15,10 @@ import org.mockito.Mockito.verify /** * Unit test for [RescuePage]. */ -class RescuePageTest: WebPageTest() { - - private val page = RescuePage(template, webInterface) +class RescuePageTest: WebPageTest2(::RescuePage) { private val soneRescuer = mock() - override fun getPage() = page - @Before fun setupSoneRescuer() { whenever(core.getSoneRescuer(currentSone)).thenReturn(soneRescuer)