Add test for DI constructability of GetLikesAjaxPage
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / web / ajax / GetLikesAjaxPage.kt
index 6f7074d..f0b0012 100644 (file)
@@ -7,12 +7,14 @@ import net.pterodactylus.sone.utils.jsonObject
 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 retrieves the number of “likes” a [net.pterodactylus.sone.data.Post]
  * or [net.pterodactylus.sone.data.PostReply] has.
  */
-class GetLikesAjaxPage(webInterface: WebInterface) : JsonPage("getLikes.ajax", webInterface) {
+class GetLikesAjaxPage @Inject constructor(webInterface: WebInterface) :
+               JsonPage("getLikes.ajax", webInterface) {
 
        override val needsFormPassword = false