- page.processTemplate(freenetRequest, templateContext)
- assertThat(templateContext["posts"] as Collection<Post>, contains(post2, post3, post1))
- assertThat((templateContext["pagination"] as Pagination<Post>).items, contains(post2, post3, post1))
- assertThat(templateContext["postsNotLoaded"], equalTo<Any>(false))
+ verifyNoRedirect {
+ assertThat(templateContext["posts"] as Collection<Post>, contains(post2, post3, post1))
+ assertThat((templateContext["pagination"] as Pagination<Post>).items, contains(post2, post3, post1))
+ assertThat(templateContext["postsNotLoaded"], equalTo<Any>(false))
+ }