Convert new page test to use new web page test base
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 19 Jun 2017 08:45:00 +0000 (10:45 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 19 Jun 2017 08:45:00 +0000 (10:45 +0200)
src/test/kotlin/net/pterodactylus/sone/web/pages/NewPageTest.kt

index 67f7811..fb4f46d 100644 (file)
@@ -17,11 +17,7 @@ import java.util.Arrays.asList
 /**
  * Unit test for [NewPage].
  */
-class NewPageTest: WebPageTest() {
-
-       private val page = NewPage(template, webInterface)
-
-       override fun getPage() = page
+class NewPageTest: WebPageTest2(::NewPage) {
 
        @Before
        fun setupNumberOfPostsPerPage() {