Add test for DI constructability of DeleteReplyPage
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / web / pages / DeleteReplyPage.kt
index 29d8c81..d524c0e 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 delete a reply.
  */
-class DeleteReplyPage(template: Template, webInterface: WebInterface):
+class DeleteReplyPage @Inject constructor(template: Template, webInterface: WebInterface):
                LoggedInPage("deleteReply.html", template, "Page.DeleteReply.Title", webInterface) {
 
        override fun handleRequest(freenetRequest: FreenetRequest, currentSone: Sone, templateContext: TemplateContext) {