* Freenet; merely all references to it are removed from the local plugin
* installation.
*/
+@MenuName("DeleteSone")
class DeleteSonePage @Inject constructor(template: Template, webInterface: WebInterface):
LoggedInPage("deleteSone.html", template, "Page.DeleteSone.Title", webInterface) {
import net.pterodactylus.sone.test.getInstance
import net.pterodactylus.sone.test.whenever
import net.pterodactylus.sone.web.baseInjector
+import net.pterodactylus.sone.web.page.*
import net.pterodactylus.util.web.Method.POST
import org.hamcrest.MatcherAssert.assertThat
import org.hamcrest.Matchers.equalTo
assertThat(baseInjector.getInstance<DeleteSonePage>(), notNullValue())
}
+ @Test
+ fun `page is annotated with correct menuname`() {
+ assertThat(page.menuName, equalTo("DeleteSone"))
+ }
+
}