From 2d8c00bcf0ad6c9565a86d7992d82a9a3845ea2f Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 20 Jun 2017 14:27:09 +0200 Subject: [PATCH] Convert delete album page test to use new web page test base --- .../kotlin/net/pterodactylus/sone/web/pages/DeleteAlbumPageTest.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/test/kotlin/net/pterodactylus/sone/web/pages/DeleteAlbumPageTest.kt b/src/test/kotlin/net/pterodactylus/sone/web/pages/DeleteAlbumPageTest.kt index c618400..6800ef4 100644 --- a/src/test/kotlin/net/pterodactylus/sone/web/pages/DeleteAlbumPageTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/web/pages/DeleteAlbumPageTest.kt @@ -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() private val album = mock() private val parentAlbum = mock() - override fun getPage() = page - @Before fun setupAlbums() { whenever(sone.id).thenReturn("sone-id") -- 2.7.4