From 4b05e5d2e587bdf21672ec99ac8a38fa5f43130d Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 19 Jun 2017 23:38:05 +0200 Subject: [PATCH] Convert edit album page test to use new web page test base --- .../kotlin/net/pterodactylus/sone/web/pages/EditAlbumPageTest.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/test/kotlin/net/pterodactylus/sone/web/pages/EditAlbumPageTest.kt b/src/test/kotlin/net/pterodactylus/sone/web/pages/EditAlbumPageTest.kt index b04ea8d..5ef276f 100644 --- a/src/test/kotlin/net/pterodactylus/sone/web/pages/EditAlbumPageTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/web/pages/EditAlbumPageTest.kt @@ -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() private val parentAlbum = mock() private val modifier = mockBuilder() private val sone = mock() - override fun getPage() = page - @Before fun setup() { whenever(album.id).thenReturn("album-id") -- 2.7.4