|
|
|
|
@ -199,7 +199,7 @@ class ServerPropertiesTests {
@@ -199,7 +199,7 @@ class ServerPropertiesTests {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
void testCustomizeUriEncoding() { |
|
|
|
|
void testCustomizeTomcatUriEncoding() { |
|
|
|
|
bind("server.tomcat.uri-encoding", "US-ASCII"); |
|
|
|
|
assertThat(this.properties.getTomcat().getUriEncoding()).isEqualTo(StandardCharsets.US_ASCII); |
|
|
|
|
} |
|
|
|
|
@ -235,17 +235,23 @@ class ServerPropertiesTests {
@@ -235,17 +235,23 @@ class ServerPropertiesTests {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
void customizeMaxKeepAliveRequests() { |
|
|
|
|
void testCustomizeTomcatMaxKeepAliveRequests() { |
|
|
|
|
bind("server.tomcat.max-keep-alive-requests", "200"); |
|
|
|
|
assertThat(this.properties.getTomcat().getMaxKeepAliveRequests()).isEqualTo(200); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
void customizeMaxKeepAliveRequestsWithInfinite() { |
|
|
|
|
void testCustomizeTomcatMaxKeepAliveRequestsWithInfinite() { |
|
|
|
|
bind("server.tomcat.max-keep-alive-requests", "-1"); |
|
|
|
|
assertThat(this.properties.getTomcat().getMaxKeepAliveRequests()).isEqualTo(-1); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
void testCustomizeTomcatMaxParameterCount() { |
|
|
|
|
bind("server.tomcat.max-parameter-count", "100"); |
|
|
|
|
assertThat(this.properties.getTomcat().getMaxParameterCount()).isEqualTo(100); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
void testCustomizeTomcatMinSpareThreads() { |
|
|
|
|
bind("server.tomcat.threads.min-spare", "10"); |
|
|
|
|
@ -379,6 +385,12 @@ class ServerPropertiesTests {
@@ -379,6 +385,12 @@ class ServerPropertiesTests {
|
|
|
|
|
.isEqualTo(getDefaultConnector().getMaxPostSize()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
void tomcatMaxParameterCountMatchesConnectorDefault() { |
|
|
|
|
assertThat(this.properties.getTomcat().getMaxParameterCount()) |
|
|
|
|
.isEqualTo(getDefaultConnector().getMaxParameterCount()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
void tomcatBackgroundProcessorDelayMatchesEngineDefault() { |
|
|
|
|
assertThat(this.properties.getTomcat().getBackgroundProcessorDelay()) |
|
|
|
|
|