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

pull/10562/head
Daniel Fernández 7 years ago committed by Brian Clozel
parent 7de6472477
commit 6a52a1a6a0

@ -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");

Loading…
Cancel
Save