Convert edit profile page test to use new web page test base
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 19 Jun 2017 21:36:12 +0000 (23:36 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 19 Jun 2017 21:36:12 +0000 (23:36 +0200)
src/test/kotlin/net/pterodactylus/sone/web/pages/EditProfilePageTest.kt

index 579d158..bb8e179 100644 (file)
@@ -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<Image>()