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

index b7df1d1..778de4d 100644 (file)
@@ -12,10 +12,7 @@ import org.mockito.Mockito.verify
 /**
  * Unit test for [CreateReplyPage].
  */
-class CreateReplyPageTest: WebPageTest() {
-
-       private val page = CreateReplyPage(template, webInterface)
-       override fun getPage() = page
+class CreateReplyPageTest: WebPageTest2(::CreateReplyPage) {
 
        @Test
        fun `page returns correct path`() {