From: David ‘Bombe’ Roden Date: Mon, 19 Jun 2017 21:38:05 +0000 (+0200) Subject: Convert edit album page test to use new web page test base X-Git-Tag: 0.9.7^2~129 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=4b05e5d2e587bdf21672ec99ac8a38fa5f43130d;p=Sone.git Convert edit album page test to use new web page test base --- 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")