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

index 7c4f07b..4d8ec26 100644 (file)
@@ -16,11 +16,7 @@ import org.mockito.Mockito.verify
 /**
  * Unit test for [CreateAlbumPage].
  */
-class CreateAlbumPageTest: WebPageTest() {
-
-       private val page = CreateAlbumPage(template, webInterface)
-
-       override fun getPage() = page
+class CreateAlbumPageTest: WebPageTest2(::CreateAlbumPage) {
 
        private val parentAlbum = createAlbum("parent-id")
        private val newAlbum = createAlbum("album-id")