/**
* The image browser page is the entry page for the image management.
*/
+@MenuName("ImageBrowser")
class ImageBrowserPage @Inject constructor(template: Template, webInterface: WebInterface):
LoggedInPage("imageBrowser.html", template, "Page.ImageBrowser.Title", webInterface) {
import net.pterodactylus.sone.test.mock
import net.pterodactylus.sone.test.whenever
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<ImageBrowserPage>(), notNullValue())
}
+ @Test
+ fun `page is annotated with correct menuname`() {
+ assertThat(page.menuName, equalTo("ImageBrowser"))
+ }
+
}