Rename EmbeddedServletContainer -> EmbeddedWebServer

This contract is not specific to servlet containers and should be
reused by all web server implementations (including reactive variants).

Fixes gh-8208
This commit is contained in:
Brian Clozel
2017-01-26 17:04:31 +01:00
parent 457d0414ea
commit 8619d6a229
42 changed files with 125 additions and 125 deletions

View File

@@ -246,7 +246,7 @@ public class LocalDevToolsAutoConfigurationTests {
public void devToolsSwitchesJspServletToDevelopmentMode() {
this.context = initializeAndRun(Config.class);
TomcatEmbeddedServletContainer tomcatContainer = (TomcatEmbeddedServletContainer) ((EmbeddedWebApplicationContext) this.context)
.getEmbeddedServletContainer();
.getEmbeddedWebServer();
Container context = tomcatContainer.getTomcat().getHost().findChildren()[0];
StandardWrapper jspServletWrapper = (StandardWrapper) context.findChild("jsp");
EmbeddedServletOptions options = (EmbeddedServletOptions) ReflectionTestUtils