|
|
@ -519,7 +519,7 @@ class ServerPropertiesTests {
|
|
|
|
template.postForEntity(URI.create("http://localhost:" + jetty.getPort() + "/form"), entity, Void.class);
|
|
|
|
template.postForEntity(URI.create("http://localhost:" + jetty.getPort() + "/form"), entity, Void.class);
|
|
|
|
assertThat(failure.get()).isNotNull();
|
|
|
|
assertThat(failure.get()).isNotNull();
|
|
|
|
String message = failure.get().getCause().getMessage();
|
|
|
|
String message = failure.get().getCause().getMessage();
|
|
|
|
int defaultMaxPostSize = Integer.valueOf(message.substring(message.lastIndexOf(' ')).trim());
|
|
|
|
int defaultMaxPostSize = Integer.parseInt(message.substring(message.lastIndexOf(' ')).trim());
|
|
|
|
assertThat(this.properties.getJetty().getMaxHttpFormPostSize().toBytes()).isEqualTo(defaultMaxPostSize);
|
|
|
|
assertThat(this.properties.getJetty().getMaxHttpFormPostSize().toBytes()).isEqualTo(defaultMaxPostSize);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
finally {
|
|
|
|
finally {
|
|
|
|