Convert unfollow Sone page test to use new web page test base
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 18 Jun 2017 21:08:53 +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/UnfollowSonePageTest.kt

index 9357c47..444a355 100644 (file)
@@ -9,11 +9,7 @@ import org.mockito.Mockito.verify
 /**
  * Unit test for [UnfollowSonePage].
  */
-class UnfollowSonePageTest : WebPageTest() {
-
-       private val page = UnfollowSonePage(template, webInterface)
-
-       override fun getPage() = page
+class UnfollowSonePageTest: WebPageTest2(::UnfollowSonePage) {
 
        @Test
        fun `page returns correct path`() {