/**
* Page that lets the user browse all his bookmarked posts.
*/
+@MenuName("Bookmarks")
class BookmarksPage @Inject constructor(template: Template, webInterface: WebInterface) :
SoneTemplatePage("bookmarks.html", webInterface, template, "Page.Bookmarks.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<BookmarksPage>(), notNullValue())
}
+ @Test
+ fun `page is annotated with correct menuname`() {
+ assertThat(page.menuName, equalTo("Bookmarks"))
+ }
+
+
}