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

index 25a4728..383e38c 100644 (file)
@@ -15,15 +15,11 @@ import org.mockito.Mockito.verify
 /**
  * Unit test for [DeletePostPage].
  */
-class DeletePostPageTest : WebPageTest() {
-
-       private val page = DeletePostPage(template, webInterface)
+class DeletePostPageTest: WebPageTest2(::DeletePostPage) {
 
        private val post = mock<Post>()
        private val sone = mock<Sone>()
 
-       override fun getPage() = page
-
        @Before
        fun setupPost() {
                whenever(post.sone).thenReturn(sone)