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