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

index b04ea8d..5ef276f 100644 (file)
@@ -17,17 +17,13 @@ import org.mockito.Mockito.verify
 /**
  * Unit test for [EditAlbumPage].
  */
-class EditAlbumPageTest: WebPageTest() {
-
-       private val page = EditAlbumPage(template, webInterface)
+class EditAlbumPageTest: WebPageTest2(::EditAlbumPage) {
 
        private val album = mock<Album>()
        private val parentAlbum = mock<Album>()
        private val modifier = mockBuilder<Modifier>()
        private val sone = mock<Sone>()
 
-       override fun getPage() = page
-
        @Before
        fun setup() {
                whenever(album.id).thenReturn("album-id")