Convert trust page test to use new web page test base
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 18 Jun 2017 21:11:34 +0000 (23:11 +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/TrustPageTest.kt

index 0273a9f..e16d001 100644 (file)
@@ -14,11 +14,7 @@ import org.mockito.Mockito.verify
 /**
  * Unit test for [TrustPage].
  */
-class TrustPageTest : WebPageTest() {
-
-       private val page = TrustPage(template, webInterface)
-
-       override fun getPage() = page
+class TrustPageTest: WebPageTest2(::TrustPage) {
 
        @Test
        fun `page returns correct path`() {