mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Added configuration test for spring.thymeleaf.reactive.max-chunk-size
This commit is contained in:
parent
7de6472477
commit
6a52a1a6a0
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user