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

index 1e62a81..3744b5b 100644 (file)
@@ -13,11 +13,7 @@ import org.mockito.Mockito.verify
 /**
  * Unit test for [MarkAsKnownPage].
  */
-class MarkAsKnownPageTest: WebPageTest() {
-
-       private val page = MarkAsKnownPage(template, webInterface)
-
-       override fun getPage() = page
+class MarkAsKnownPageTest: WebPageTest2(::MarkAsKnownPage) {
 
        @Test
        fun `page returns correct path`() {