- page.processTemplate(freenetRequest, templateContext)
- assertThat(templateContext["posts"] as Collection<Post>, contains(post2, post1))
- assertThat((templateContext["pagination"] as Pagination<Post>).items, contains(post2, post1))
- assertThat(templateContext["postsNotLoaded"], equalTo<Any>(true))
+ verifyNoRedirect {
+ assertThat(templateContext["posts"] as Collection<Post>, contains(post2, post1))
+ assertThat((templateContext["pagination"] as Pagination<Post>).items, contains(post2, post1))
+ assertThat(templateContext["postsNotLoaded"], equalTo<Any>(true))
+ }
+ }
+
+ @Test
+ fun `bookmarks page can be created by dependency injection`() {
+ assertThat(baseInjector.getInstance<BookmarksPage>(), notNullValue())