use of cn.taketoday.framework.web.servlet.context.ServletWebServerApplicationContext in project today-infrastructure by TAKETODAY.
the class MissingWebServerFactoryBeanFailureAnalyzerTests method missingServletWebServerFactoryBeanFailure.
@Test
void missingServletWebServerFactoryBeanFailure() {
ApplicationContextException failure = createFailure(new ServletWebServerApplicationContext());
assertThat(failure).isNotNull();
FailureAnalysis analysis = new MissingWebServerFactoryBeanFailureAnalyzer().analyze(failure);
assertThat(analysis).isNotNull();
assertThat(analysis.getDescription()).isEqualTo("Web application could not be started as there was no " + ServletWebServerFactory.class.getName() + " bean defined in the context.");
assertThat(analysis.getAction()).isEqualTo("Check your application's dependencies for a supported servlet_web web server.\nCheck the configured web " + "application type.");
}
use of cn.taketoday.framework.web.servlet.context.ServletWebServerApplicationContext in project today-framework by TAKETODAY.
the class MissingWebServerFactoryBeanFailureAnalyzerTests method missingServletWebServerFactoryBeanFailure.
@Test
void missingServletWebServerFactoryBeanFailure() {
ApplicationContextException failure = createFailure(new ServletWebServerApplicationContext());
assertThat(failure).isNotNull();
FailureAnalysis analysis = new MissingWebServerFactoryBeanFailureAnalyzer().analyze(failure);
assertThat(analysis).isNotNull();
assertThat(analysis.getDescription()).isEqualTo("Web application could not be started as there was no " + ServletWebServerFactory.class.getName() + " bean defined in the context.");
assertThat(analysis.getAction()).isEqualTo("Check your application's dependencies for a supported servlet_web web server.\nCheck the configured web " + "application type.");
}
Aggregations