- request("", GET)
- page.handleRequest(freenetRequest, templateContext)
- assertThat(templateContext["auto-follow"], equalTo<Any>(true))
- assertThat(templateContext["show-notification-new-sones"], equalTo<Any>(true))
- assertThat(templateContext["show-notification-new-posts"], equalTo<Any>(true))
- assertThat(templateContext["show-notification-new-replies"], equalTo<Any>(true))
- assertThat(templateContext["enable-sone-insert-notifications"], equalTo<Any>(true))
- assertThat(templateContext["load-linked-images"], equalTo<Any>("FOLLOWED"))
- assertThat(templateContext["show-custom-avatars"], equalTo<Any>("FOLLOWED"))
- assertThat(templateContext["insertion-delay"], equalTo<Any>(1))
- assertThat(templateContext["characters-per-post"], equalTo<Any>(50))
- assertThat(templateContext["fcp-full-access-required"], equalTo<Any>(1))
- assertThat(templateContext["images-per-page"], equalTo<Any>(4))
- assertThat(templateContext["fcp-interface-active"], equalTo<Any>(true))
- assertThat(templateContext["require-full-access"], equalTo<Any>(true))
- assertThat(templateContext["negative-trust"], equalTo<Any>(7))
- assertThat(templateContext["positive-trust"], equalTo<Any>(8))
- assertThat(templateContext["post-cut-off-length"], equalTo<Any>(51))
- assertThat(templateContext["posts-per-page"], equalTo<Any>(10))
- assertThat(templateContext["trust-comment"], equalTo<Any>("11"))
+ verifyNoRedirect {
+ assertThat(templateContext["auto-follow"], equalTo<Any>(true))
+ assertThat(templateContext["show-notification-new-sones"], equalTo<Any>(true))
+ assertThat(templateContext["show-notification-new-posts"], equalTo<Any>(true))
+ assertThat(templateContext["show-notification-new-replies"], equalTo<Any>(true))
+ assertThat(templateContext["enable-sone-insert-notifications"], equalTo<Any>(true))
+ assertThat(templateContext["load-linked-images"], equalTo<Any>("FOLLOWED"))
+ assertThat(templateContext["show-custom-avatars"], equalTo<Any>("FOLLOWED"))
+ assertThat(templateContext["insertion-delay"], equalTo<Any>(1))
+ assertThat(templateContext["characters-per-post"], equalTo<Any>(50))
+ assertThat(templateContext["fcp-full-access-required"], equalTo<Any>(1))
+ assertThat(templateContext["images-per-page"], equalTo<Any>(4))
+ assertThat(templateContext["fcp-interface-active"], equalTo<Any>(true))
+ assertThat(templateContext["require-full-access"], equalTo<Any>(true))
+ assertThat(templateContext["negative-trust"], equalTo<Any>(7))
+ assertThat(templateContext["positive-trust"], equalTo<Any>(8))
+ assertThat(templateContext["post-cut-off-length"], equalTo<Any>(51))
+ assertThat(templateContext["posts-per-page"], equalTo<Any>(10))
+ assertThat(templateContext["trust-comment"], equalTo<Any>("11"))
+ }