Add test for DI constructability of UnlockSoneAjaxPage
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / web / ajax / UnlockSoneAjaxPage.kt
index 7d77c05..efa70f1 100644 (file)
@@ -3,11 +3,13 @@ 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 javax.inject.Inject
 
 /**
  * Lets the user [unlock][net.pterodactylus.sone.core.Core.unlockSone] a [Sone][net.pterodactylus.sone.data.Sone].
  */
-class UnlockSoneAjaxPage(webInterface: WebInterface) : JsonPage("unlockSone.ajax", webInterface) {
+class UnlockSoneAjaxPage @Inject constructor(webInterface: WebInterface) :
+               JsonPage("unlockSone.ajax", webInterface) {
 
        override val requiresLogin = false