Add test for DI constructability of ViewPostPage
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / web / pages / ViewPostPage.kt
index d3f4540..763fc99 100644 (file)
@@ -8,11 +8,12 @@ import net.pterodactylus.sone.web.page.FreenetRequest
 import net.pterodactylus.util.template.Template
 import net.pterodactylus.util.template.TemplateContext
 import java.net.URI
+import javax.inject.Inject
 
 /**
  * This page lets the user view a post and all its replies.
  */
-class ViewPostPage(template: Template, webInterface: WebInterface):
+class ViewPostPage @Inject constructor(template: Template, webInterface: WebInterface):
                SoneTemplatePage("viewPost.html", webInterface, template, "Page.ViewPost.Title") {
 
        override fun handleRequest(freenetRequest: FreenetRequest, templateContext: TemplateContext) {