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

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