Add test for DI constructability of UnlockSonePage
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / web / pages / UnlockSonePage.kt
index 0567af2..e3d0352 100644 (file)
@@ -6,11 +6,12 @@ import net.pterodactylus.sone.web.WebInterface
 import net.pterodactylus.sone.web.page.FreenetRequest
 import net.pterodactylus.util.template.Template
 import net.pterodactylus.util.template.TemplateContext
+import javax.inject.Inject
 
 /**
  * This page lets the user unlock a [net.pterodactylus.sone.data.Sone] to allow its insertion.
  */
-class UnlockSonePage(template: Template, webInterface: WebInterface):
+class UnlockSonePage @Inject constructor(template: Template, webInterface: WebInterface):
                SoneTemplatePage("unlockSone.html", webInterface, template, "Page.UnlockSone.Title") {
 
        override fun handleRequest(freenetRequest: FreenetRequest, templateContext: TemplateContext) {