Add test for DI constructability of GetReplyAjaxPage
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / web / ajax / GetReplyAjaxPage.kt
index c6cfc2f..119a622 100644 (file)
@@ -8,11 +8,13 @@ import net.pterodactylus.sone.utils.render
 import net.pterodactylus.sone.web.WebInterface
 import net.pterodactylus.sone.web.page.FreenetRequest
 import net.pterodactylus.util.template.Template
+import javax.inject.Inject
 
 /**
  * This AJAX page returns the details of a reply.
  */
-class GetReplyAjaxPage(webInterface: WebInterface, private val template: Template) : LoggedInJsonPage("getReply.ajax", webInterface) {
+class GetReplyAjaxPage @Inject constructor(webInterface: WebInterface, private val template: Template) :
+               LoggedInJsonPage("getReply.ajax", webInterface) {
 
        override val needsFormPassword = false