From: David ‘Bombe’ Roden Date: Mon, 19 Jun 2017 21:37:29 +0000 (+0200) Subject: Convert edit image page test to use new web page test base X-Git-Tag: 0.9.7^2~130 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=056b3e9cb0336873f261af14b822034c3c12e9fd;p=Sone.git Convert edit image page test to use new web page test base --- diff --git a/src/test/kotlin/net/pterodactylus/sone/web/pages/EditImagePageTest.kt b/src/test/kotlin/net/pterodactylus/sone/web/pages/EditImagePageTest.kt index e763a75..73b6eca 100644 --- a/src/test/kotlin/net/pterodactylus/sone/web/pages/EditImagePageTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/web/pages/EditImagePageTest.kt @@ -20,17 +20,13 @@ import org.mockito.Mockito.verify /** * Unit test for [EditImagePage]. */ -class EditImagePageTest : WebPageTest() { - - private val page = EditImagePage(template, webInterface) +class EditImagePageTest: WebPageTest2(::EditImagePage) { private val image = mock() private val modifier = mockBuilder() private val sone = mock() private val album = mock() - override fun getPage() = page - @Before fun setupImage() { whenever(sone.isLocal).thenReturn(true)