mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-23 09:49:01 +00:00
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:
+1
-1
@@ -41,7 +41,7 @@ public class TomcatLegacyCookieProcessorExampleTests {
|
||||
EmbeddedWebApplicationContext applicationContext = (EmbeddedWebApplicationContext) new SpringApplication(
|
||||
TestConfiguration.class, LegacyCookieProcessorConfiguration.class).run();
|
||||
Context context = (Context) ((TomcatEmbeddedServletContainer) applicationContext
|
||||
.getEmbeddedServletContainer()).getTomcat().getHost().findChildren()[0];
|
||||
.getEmbeddedWebServer()).getTomcat().getHost().findChildren()[0];
|
||||
assertThat(context.getCookieProcessor())
|
||||
.isInstanceOf(LegacyCookieProcessor.class);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user