From: David ‘Bombe’ Roden Date: Tue, 20 Jun 2017 12:23:55 +0000 (+0200) Subject: Convert delete reply page test to use new web page test base X-Git-Tag: 0.9.7^2~125 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=1e86e98e87c0d4c175f81fd178f809182e7cc17e;p=Sone.git Convert delete reply page test to use new web page test base --- diff --git a/src/test/kotlin/net/pterodactylus/sone/web/pages/DeleteReplyPageTest.kt b/src/test/kotlin/net/pterodactylus/sone/web/pages/DeleteReplyPageTest.kt index c03afc8..ba40988 100644 --- a/src/test/kotlin/net/pterodactylus/sone/web/pages/DeleteReplyPageTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/web/pages/DeleteReplyPageTest.kt @@ -15,15 +15,11 @@ import org.mockito.Mockito.verify /** * Unit test for [DeleteReplyPage]. */ -class DeleteReplyPageTest : WebPageTest() { - - private val page = DeleteReplyPage(template, webInterface) +class DeleteReplyPageTest: WebPageTest2(::DeleteReplyPage) { private val sone = mock() private val reply = mock() - override fun getPage() = page - @Before fun setupReply() { whenever(sone.isLocal).thenReturn(true)