Convert delete profile field page test to use new web page test base
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 20 Jun 2017 12:24:39 +0000 (14:24 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 20 Jun 2017 12:24:39 +0000 (14:24 +0200)
src/test/kotlin/net/pterodactylus/sone/web/pages/DeleteProfileFieldPageTest.kt

index df91d74..862fff4 100644 (file)
@@ -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)