/**
* This page shows all known Sones.
*/
+@MenuName("KnownSones")
class KnownSonesPage @Inject constructor(template: Template, webInterface: WebInterface):
SoneTemplatePage("knownSones.html", webInterface, template, "Page.KnownSones.Title") {
import net.pterodactylus.sone.test.whenever
import net.pterodactylus.sone.utils.Pagination
import net.pterodactylus.sone.web.baseInjector
+import net.pterodactylus.sone.web.page.*
import org.hamcrest.MatcherAssert.assertThat
import org.hamcrest.Matchers.contains
import org.hamcrest.Matchers.equalTo
assertThat(baseInjector.getInstance<KnownSonesPage>(), notNullValue())
}
+ @Test
+ fun `page is annotated with the correct menuname`() {
+ assertThat(page.menuName, equalTo("KnownSones"))
+ }
+
}