From 6a52a1a6a02ccedb030408d20746545917998fa3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ferna=CC=81ndez?= Date: Wed, 4 Oct 2017 01:49:03 +0200 Subject: [PATCH] Added configuration test for spring.thymeleaf.reactive.max-chunk-size --- .../ThymeleafReactiveAutoConfigurationTests.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafReactiveAutoConfigurationTests.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafReactiveAutoConfigurationTests.java index c2b5fe75f4e..aae0eb35f2d 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafReactiveAutoConfigurationTests.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafReactiveAutoConfigurationTests.java @@ -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");