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