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

index d57b1d0..95afaa8 100644 (file)
@@ -16,10 +16,7 @@ import org.mockito.Mockito.verify
 /**
  * Unit test for [CreateSonePage].
  */
-class CreateSonePageTest: WebPageTest() {
-
-       private val page = CreateSonePage(template, webInterface)
-       override fun getPage() = page
+class CreateSonePageTest: WebPageTest2(::CreateSonePage) {
 
        private val localSones_ = listOf(
                        createSone("local-sone1"),