Convert delete reply page test to use new web page test base
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 20 Jun 2017 12:23:55 +0000 (14:23 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 20 Jun 2017 12:23:55 +0000 (14:23 +0200)
src/test/kotlin/net/pterodactylus/sone/web/pages/DeleteReplyPageTest.kt

index c03afc8..ba40988 100644 (file)
@@ -15,15 +15,11 @@ import org.mockito.Mockito.verify
 /**
  * Unit test for [DeleteReplyPage].
  */
-class DeleteReplyPageTest : WebPageTest() {
-
-       private val page = DeleteReplyPage(template, webInterface)
+class DeleteReplyPageTest: WebPageTest2(::DeleteReplyPage) {
 
        private val sone = mock<Sone>()
        private val reply = mock<PostReply>()
 
-       override fun getPage() = page
-
        @Before
        fun setupReply() {
                whenever(sone.isLocal).thenReturn(true)