Convert create post page test to use new web page test base
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 20 Jun 2017 12:33:02 +0000 (14:33 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 20 Jun 2017 12:33:02 +0000 (14:33 +0200)
src/test/kotlin/net/pterodactylus/sone/web/pages/CreatePostPageTest.kt

index 4cb6a8c..35ec597 100644 (file)
@@ -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`() {