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

index 4a67c66..9a0c990 100644 (file)
@@ -15,14 +15,11 @@ import org.mockito.Mockito.verify
 /**
  * Unit test for [DeleteImagePage].
  */
-class DeleteImagePageTest: WebPageTest() {
+class DeleteImagePageTest: WebPageTest2(::DeleteImagePage) {
 
-       private val page = DeleteImagePage(template, webInterface)
        private val image = mock<Image>()
        private val sone = mock<Sone>()
 
-       override fun getPage() = page
-
        @Before
        fun setupImage() {
                val album = mock<Album>()