From: David ‘Bombe’ Roden Date: Tue, 20 Jun 2017 12:33:02 +0000 (+0200) Subject: Convert create post page test to use new web page test base X-Git-Tag: 0.9.7^2~118 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=9e1c68c8c58356cf9299ab608a981d4a5b34bc92;p=Sone.git Convert create post page test to use new web page test base --- diff --git a/src/test/kotlin/net/pterodactylus/sone/web/pages/CreatePostPageTest.kt b/src/test/kotlin/net/pterodactylus/sone/web/pages/CreatePostPageTest.kt index 4cb6a8c..35ec597 100644 --- a/src/test/kotlin/net/pterodactylus/sone/web/pages/CreatePostPageTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/web/pages/CreatePostPageTest.kt @@ -13,11 +13,7 @@ import org.mockito.Mockito.verify /** * Unit test for [CreatePostPage]. */ -class CreatePostPageTest: WebPageTest() { - - private val page = CreatePostPage(template, webInterface) - - override fun getPage() = page +class CreatePostPageTest: WebPageTest2(::CreatePostPage) { @Test fun `page returns correct path`() {