From: David ‘Bombe’ Roden Date: Tue, 20 Jun 2017 12:26:22 +0000 (+0200) Subject: Convert delete image page test to use new web page test base X-Git-Tag: 0.9.7^2~122 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=67b14408723d323f8ea561cc34f92cdc7c25e582;p=Sone.git Convert delete image page test to use new web page test base --- diff --git a/src/test/kotlin/net/pterodactylus/sone/web/pages/DeleteImagePageTest.kt b/src/test/kotlin/net/pterodactylus/sone/web/pages/DeleteImagePageTest.kt index 4a67c66..9a0c990 100644 --- a/src/test/kotlin/net/pterodactylus/sone/web/pages/DeleteImagePageTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/web/pages/DeleteImagePageTest.kt @@ -15,14 +15,11 @@ import org.mockito.Mockito.verify /** * Unit test for [DeleteImagePage]. */ -class DeleteImagePageTest: WebPageTest() { +class DeleteImagePageTest: WebPageTest2(::DeleteImagePage) { - private val page = DeleteImagePage(template, webInterface) private val image = mock() private val sone = mock() - override fun getPage() = page - @Before fun setupImage() { val album = mock()