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

index e763a75..73b6eca 100644 (file)
@@ -20,17 +20,13 @@ import org.mockito.Mockito.verify
 /**
  * Unit test for [EditImagePage].
  */
-class EditImagePageTest : WebPageTest() {
-
-       private val page = EditImagePage(template, webInterface)
+class EditImagePageTest: WebPageTest2(::EditImagePage) {
 
        private val image = mock<Image>()
        private val modifier = mockBuilder<Modifier>()
        private val sone = mock<Sone>()
        private val album = mock<Album>()
 
-       override fun getPage() = page
-
        @Before
        fun setupImage() {
                whenever(sone.isLocal).thenReturn(true)