From: David ‘Bombe’ Roden Date: Sun, 18 Jun 2017 21:08:40 +0000 (+0200) Subject: Convert unlike page test to use new web page test base X-Git-Tag: 0.9.7^2~156 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=7ca7e39000f8eca3c60189679e65bba1baf3577a;p=Sone.git Convert unlike page test to use new web page test base --- diff --git a/src/test/kotlin/net/pterodactylus/sone/web/pages/UnlikePageTest.kt b/src/test/kotlin/net/pterodactylus/sone/web/pages/UnlikePageTest.kt index 852a6c4..d3dd60a 100644 --- a/src/test/kotlin/net/pterodactylus/sone/web/pages/UnlikePageTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/web/pages/UnlikePageTest.kt @@ -11,11 +11,7 @@ import org.mockito.Mockito.verify /** * Unit test for [UnlikePage]. */ -class UnlikePageTest : WebPageTest() { - - private val page = UnlikePage(template, webInterface) - - override fun getPage() = page +class UnlikePageTest: WebPageTest2(::UnlikePage) { @Test fun `page returns correct path`() {