Convert unlike page test to use new web page test base
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 18 Jun 2017 21:08:40 +0000 (23:08 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 19 Jun 2017 07:59:23 +0000 (09:59 +0200)
src/test/kotlin/net/pterodactylus/sone/web/pages/UnlikePageTest.kt

index 852a6c4..d3dd60a 100644 (file)
@@ -11,11 +11,7 @@ import org.mockito.Mockito.verify
 /**
  * Unit test for [UnlikePage].
  */
-class UnlikePageTest : WebPageTest() {
-
-       private val page = UnlikePage(template, webInterface)
-
-       override fun getPage() = page
+class UnlikePageTest: WebPageTest2(::UnlikePage) {
 
        @Test
        fun `page returns correct path`() {