From: David ‘Bombe’ Roden Date: Tue, 20 Jun 2017 12:30:04 +0000 (+0200) Subject: Convert create reply page test to use new web page test base X-Git-Tag: 0.9.7^2~119 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=604f380fb62fc513540733d3c3794b1a336f536e;p=Sone.git Convert create reply page test to use new web page test base --- diff --git a/src/test/kotlin/net/pterodactylus/sone/web/pages/CreateReplyPageTest.kt b/src/test/kotlin/net/pterodactylus/sone/web/pages/CreateReplyPageTest.kt index b7df1d1..778de4d 100644 --- a/src/test/kotlin/net/pterodactylus/sone/web/pages/CreateReplyPageTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/web/pages/CreateReplyPageTest.kt @@ -12,10 +12,7 @@ import org.mockito.Mockito.verify /** * Unit test for [CreateReplyPage]. */ -class CreateReplyPageTest: WebPageTest() { - - private val page = CreateReplyPage(template, webInterface) - override fun getPage() = page +class CreateReplyPageTest: WebPageTest2(::CreateReplyPage) { @Test fun `page returns correct path`() {