Convert distrust page test to use new web page test base
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 19 Jun 2017 21:38:44 +0000 (23:38 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 19 Jun 2017 21:38:44 +0000 (23:38 +0200)
src/test/kotlin/net/pterodactylus/sone/web/pages/DistrustPageTest.kt

index 5e6aee5..a1a59b9 100644 (file)
@@ -12,11 +12,7 @@ import org.mockito.Mockito.verify
 /**
  * Unit test for [DistrustPage].
  */
-class DistrustPageTest: WebPageTest() {
-
-       private val page = DistrustPage(template, webInterface)
-
-       override fun getPage() = page
+class DistrustPageTest: WebPageTest2(::DistrustPage) {
 
        @Test
        fun `page returns correct path`() {