From: David ‘Bombe’ Roden Date: Tue, 20 Jun 2017 12:27:09 +0000 (+0200) Subject: Convert delete album page test to use new web page test base X-Git-Tag: 0.9.7^2~121 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=2d8c00bcf0ad6c9565a86d7992d82a9a3845ea2f;p=Sone.git Convert delete album page test to use new web page test base --- 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")