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

This commit is contained in:
Daniel Fernández 2017-10-04 01:49:03 +02:00 committed by Brian Clozel
parent 7de6472477
commit 6a52a1a6a0

View File

@ -112,6 +112,14 @@ public class ThymeleafReactiveAutoConfigurationTests {
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
public void overrideFullModeViewNames() throws Exception {
load(BaseConfiguration.class, "spring.thymeleaf.reactive.fullModeViewNames:foo,bar");