Commit 6a52a1a6 authored by Daniel Fernández's avatar Daniel Fernández Committed by Brian Clozel

Added configuration test for spring.thymeleaf.reactive.max-chunk-size

parent 7de64724
...@@ -112,6 +112,14 @@ public class ThymeleafReactiveAutoConfigurationTests { ...@@ -112,6 +112,14 @@ public class ThymeleafReactiveAutoConfigurationTests {
assertThat(views.getViewNames()).isEqualTo(new String[] { "foo", "bar" }); assertThat(views.getViewNames()).isEqualTo(new String[] { "foo", "bar" });
} }
@Test
public void overrideMaxChunkSize() throws Exception {
load(BaseConfiguration.class, "spring.thymeleaf.reactive.maxChunkSize:8192");
ThymeleafReactiveViewResolver views = this.context
.getBean(ThymeleafReactiveViewResolver.class);
assertThat(views.getResponseMaxChunkSizeBytes()).isEqualTo(Integer.valueOf(8192));
}
@Test @Test
public void overrideFullModeViewNames() throws Exception { public void overrideFullModeViewNames() throws Exception {
load(BaseConfiguration.class, "spring.thymeleaf.reactive.fullModeViewNames:foo,bar"); load(BaseConfiguration.class, "spring.thymeleaf.reactive.fullModeViewNames:foo,bar");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment