From: David ‘Bombe’ Roden Date: Tue, 20 Jun 2017 12:24:39 +0000 (+0200) Subject: Convert delete profile field page test to use new web page test base X-Git-Tag: 0.9.7^2~124 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=0e15278172d70dc709888795545d4e4717cd3423;p=Sone.git Convert delete profile field page test to use new web page test base --- diff --git a/src/test/kotlin/net/pterodactylus/sone/web/pages/DeleteProfileFieldPageTest.kt b/src/test/kotlin/net/pterodactylus/sone/web/pages/DeleteProfileFieldPageTest.kt index df91d74..862fff4 100644 --- a/src/test/kotlin/net/pterodactylus/sone/web/pages/DeleteProfileFieldPageTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/web/pages/DeleteProfileFieldPageTest.kt @@ -15,15 +15,11 @@ import org.mockito.Mockito.verify /** * Unit test for [DeleteProfileFieldPage]. */ -class DeleteProfileFieldPageTest: WebPageTest() { - - private val page = DeleteProfileFieldPage(template, webInterface) +class DeleteProfileFieldPageTest: WebPageTest2(::DeleteProfileFieldPage) { private val profile = Profile(currentSone) private val field = profile.addField("name") - override fun getPage() = page - @Before fun setupProfile() { whenever(currentSone.profile).thenReturn(profile)