Skip to content

Commit aebde10

Browse files
Added configuration test for spring.thymeleaf.reactive.max-chunk-size
1 parent f70d85c commit aebde10

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafReactiveAutoConfigurationTests.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,14 @@ public void overrideViewNames() throws Exception {
112112
assertThat(views.getViewNames()).isEqualTo(new String[] { "foo", "bar" });
113113
}
114114

115+
@Test
116+
public void overrideMaxChunkSize() throws Exception {
117+
load(BaseConfiguration.class, "spring.thymeleaf.reactive.maxChunkSize:8192");
118+
ThymeleafReactiveViewResolver views = this.context
119+
.getBean(ThymeleafReactiveViewResolver.class);
120+
assertThat(views.getResponseMaxChunkSizeBytes()).isEqualTo(Integer.valueOf(8192));
121+
}
122+
115123
@Test
116124
public void overrideFullModeViewNames() throws Exception {
117125
load(BaseConfiguration.class, "spring.thymeleaf.reactive.fullModeViewNames:foo,bar");

0 commit comments

Comments
 (0)