From: David ‘Bombe’ Roden Date: Mon, 19 Jun 2017 21:36:12 +0000 (+0200) Subject: Convert edit profile page test to use new web page test base X-Git-Tag: 0.9.7^2~132 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=fcd50337428d889a17aa89e097584bc34626f97a;hp=04d8d233b097a2c1a856d4fe2a1dc87a7ea3a26b;p=Sone.git Convert edit profile page test to use new web page test base --- diff --git a/src/test/kotlin/net/pterodactylus/sone/web/pages/EditProfilePageTest.kt b/src/test/kotlin/net/pterodactylus/sone/web/pages/EditProfilePageTest.kt index 579d158..bb8e179 100644 --- a/src/test/kotlin/net/pterodactylus/sone/web/pages/EditProfilePageTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/web/pages/EditProfilePageTest.kt @@ -17,16 +17,12 @@ import org.mockito.Mockito.verify /** * Unit test for [EditProfilePage]. */ -class EditProfilePageTest : WebPageTest() { - - private val page = EditProfilePage(template, webInterface) +class EditProfilePageTest: WebPageTest2(::EditProfilePage) { private val profile = Profile(currentSone) private val firstField = profile.addField("First Field") private val secondField = profile.addField("Second Field") - override fun getPage() = page - @Before fun setupProfile() { val avatar = mock()