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

index 0d46f6c..8e931e5 100644 (file)
@@ -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)