Merge pull request #8621 from izeye:polish-20170315

* pr/8621:
  Polish
pull/8496/merge
Stephane Nicoll 8 years ago
commit 2a22afdba7

@ -349,14 +349,14 @@ public class DefaultServletWebServerFactoryCustomizerTests {
bindProperties(map); bindProperties(map);
TomcatServletWebServerFactory factory = new TomcatServletWebServerFactory(0); TomcatServletWebServerFactory factory = new TomcatServletWebServerFactory(0);
this.customizer.customize(factory); this.customizer.customize(factory);
TomcatWebServer embeddedfactory = (TomcatWebServer) factory.getWebServer(); TomcatWebServer embeddedFactory = (TomcatWebServer) factory.getWebServer();
embeddedfactory.start(); embeddedFactory.start();
try { try {
assertThat(((AbstractProtocol<?>) embeddedfactory.getTomcat().getConnector() assertThat(((AbstractProtocol<?>) embeddedFactory.getTomcat().getConnector()
.getProtocolHandler()).getBacklog()).isEqualTo(10); .getProtocolHandler()).getBacklog()).isEqualTo(10);
} }
finally { finally {
embeddedfactory.stop(); embeddedFactory.stop();
} }
} }
@ -367,14 +367,14 @@ public class DefaultServletWebServerFactoryCustomizerTests {
bindProperties(map); bindProperties(map);
TomcatServletWebServerFactory factory = new TomcatServletWebServerFactory(0); TomcatServletWebServerFactory factory = new TomcatServletWebServerFactory(0);
this.customizer.customize(factory); this.customizer.customize(factory);
TomcatWebServer embeddedfactory = (TomcatWebServer) factory.getWebServer(); TomcatWebServer embeddedFactory = (TomcatWebServer) factory.getWebServer();
embeddedfactory.start(); embeddedFactory.start();
try { try {
assertThat(((AbstractProtocol<?>) embeddedfactory.getTomcat().getConnector() assertThat(((AbstractProtocol<?>) embeddedFactory.getTomcat().getConnector()
.getProtocolHandler()).getMaxConnections()).isEqualTo(5); .getProtocolHandler()).getMaxConnections()).isEqualTo(5);
} }
finally { finally {
embeddedfactory.stop(); embeddedFactory.stop();
} }
} }
@ -385,14 +385,14 @@ public class DefaultServletWebServerFactoryCustomizerTests {
bindProperties(map); bindProperties(map);
TomcatServletWebServerFactory factory = new TomcatServletWebServerFactory(0); TomcatServletWebServerFactory factory = new TomcatServletWebServerFactory(0);
this.customizer.customize(factory); this.customizer.customize(factory);
TomcatWebServer embeddedfactory = (TomcatWebServer) factory.getWebServer(); TomcatWebServer embeddedFactory = (TomcatWebServer) factory.getWebServer();
embeddedfactory.start(); embeddedFactory.start();
try { try {
assertThat(embeddedfactory.getTomcat().getConnector().getMaxPostSize()) assertThat(embeddedFactory.getTomcat().getConnector().getMaxPostSize())
.isEqualTo(10000); .isEqualTo(10000);
} }
finally { finally {
embeddedfactory.stop(); embeddedFactory.stop();
} }
} }

Loading…
Cancel
Save