Add test for DI constructability of FollowSonePage
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / web / pages / FollowSonePage.kt
index cf5bcee..187bb0d 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 follow another Sone.
  */
-class FollowSonePage(template: Template, webInterface: WebInterface):
+class FollowSonePage @Inject constructor(template: Template, webInterface: WebInterface):
                LoggedInPage("followSone.html", template, "Page.FollowSone.Title", webInterface) {
 
        override fun handleRequest(freenetRequest: FreenetRequest, currentSone: Sone, templateContext: TemplateContext) {