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

index c618400..6800ef4 100644 (file)
@@ -15,16 +15,12 @@ import org.mockito.Mockito.verify
 /**
  * Unit test for [DeleteAlbumPage].
  */
-class DeleteAlbumPageTest: WebPageTest() {
-
-       private val page = DeleteAlbumPage(template, webInterface)
+class DeleteAlbumPageTest: WebPageTest2(::DeleteAlbumPage) {
 
        private val sone = mock<Sone>()
        private val album = mock<Album>()
        private val parentAlbum = mock<Album>()
 
-       override fun getPage() = page
-
        @Before
        fun setupAlbums() {
                whenever(sone.id).thenReturn("sone-id")