Add test for DI constructability of TrustPage
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / web / pages / TrustPage.kt
index 758ae07..f8cb6dd 100644 (file)
@@ -7,12 +7,13 @@ 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
 
 /**
  * Page that lets the user trust another Sone. This will assign a configurable
  * amount of trust to an identity.
  */
-class TrustPage(template: Template, webInterface: WebInterface) :
+class TrustPage @Inject constructor(template: Template, webInterface: WebInterface) :
                LoggedInPage("trust.html", template, "Page.Trust.Title", webInterface) {
 
        override fun handleRequest(freenetRequest: FreenetRequest, currentSone: Sone, templateContext: TemplateContext) {