From: David ‘Bombe’ Roden Date: Mon, 19 Jun 2017 21:36:50 +0000 (+0200) Subject: Convert edit profile field page test to use new web page test base X-Git-Tag: 0.9.7^2~131 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=a5dc64b709161605320d393865774f93ce562c4b;p=Sone.git Convert edit profile field page test to use new web page test base --- diff --git a/src/test/kotlin/net/pterodactylus/sone/web/pages/EditProfileFieldPageTest.kt b/src/test/kotlin/net/pterodactylus/sone/web/pages/EditProfileFieldPageTest.kt index 0d46f6c..8e931e5 100644 --- a/src/test/kotlin/net/pterodactylus/sone/web/pages/EditProfileFieldPageTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/web/pages/EditProfileFieldPageTest.kt @@ -13,15 +13,11 @@ import org.mockito.Mockito.verify /** * Unit test for [EditProfileFieldPage]. */ -class EditProfileFieldPageTest : WebPageTest() { - - private val page = EditProfileFieldPage(template, webInterface) +class EditProfileFieldPageTest: WebPageTest2(::EditProfileFieldPage) { private val profile = Profile(currentSone) private val field = profile.addField("Name") - override fun getPage() = page - @Before fun setupProfile() { whenever(currentSone.profile).thenReturn(profile)