Convert like page test to use new web page test base
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 19 Jun 2017 09:02:47 +0000 (11:02 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 19 Jun 2017 09:02:47 +0000 (11:02 +0200)
src/test/kotlin/net/pterodactylus/sone/web/pages/LikePageTest.kt

index 5b18d4c..9a293cc 100644 (file)
@@ -10,11 +10,7 @@ import org.mockito.Mockito.verifyNoMoreInteractions
 /**
  * Unit test for [LikePage].
  */
-class LikePageTest : WebPageTest() {
-
-       private val page = LikePage(template, webInterface)
-
-       override fun getPage() = page
+class LikePageTest: WebPageTest2(::LikePage) {
 
        @Test
        fun `page returns correct path`() {