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

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