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