Add test for DI constructability of MarkAsKnownAjaxPage
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / web / ajax / MarkAsKnownAjaxPage.kt
index 0451eaa..4ab6d18 100644 (file)
@@ -3,12 +3,14 @@ package net.pterodactylus.sone.web.ajax
 import net.pterodactylus.sone.utils.parameters
 import net.pterodactylus.sone.web.WebInterface
 import net.pterodactylus.sone.web.page.FreenetRequest
 import net.pterodactylus.sone.utils.parameters
 import net.pterodactylus.sone.web.WebInterface
 import net.pterodactylus.sone.web.page.FreenetRequest
+import javax.inject.Inject
 
 /**
  * AJAX page that lets the user mark a number of [net.pterodactylus.sone.data.Sone]s,
  * [net.pterodactylus.sone.data.Post]s, or [net.pterodactylus.sone.data.Reply]s as known.
  */
 
 /**
  * AJAX page that lets the user mark a number of [net.pterodactylus.sone.data.Sone]s,
  * [net.pterodactylus.sone.data.Post]s, or [net.pterodactylus.sone.data.Reply]s as known.
  */
-class MarkAsKnownAjaxPage(webInterface: WebInterface) : JsonPage("markAsKnown.ajax", webInterface) {
+class MarkAsKnownAjaxPage @Inject constructor(webInterface: WebInterface) :
+               JsonPage("markAsKnown.ajax", webInterface) {
 
        override val requiresLogin = false
 
 
        override val requiresLogin = false