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

index 1f62a92..b6da751 100644 (file)
@@ -15,14 +15,10 @@ import org.mockito.Mockito.verify
 /**
  * Unit test for [RescuePage].
  */
-class RescuePageTest: WebPageTest() {
-
-       private val page = RescuePage(template, webInterface)
+class RescuePageTest: WebPageTest2(::RescuePage) {
 
        private val soneRescuer = mock<SoneRescuer>()
 
-       override fun getPage() = page
-
        @Before
        fun setupSoneRescuer() {
                whenever(core.getSoneRescuer(currentSone)).thenReturn(soneRescuer)