Java Code Examples for org.springframework.boot.diagnostics.FailureAnalyzer#analyze()

The following examples show how to use org.springframework.boot.diagnostics.FailureAnalyzer#analyze() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ServiceBrokerAutoConfigurationTest.java    From spring-cloud-open-service-broker with Apache License 2.0 4 votes vote down vote up
private void assertFailureAnalysis(Throwable t) {
	FailureAnalyzer analyzer = new RequiredCatalogBeanFailureAnalyzer();
	FailureAnalysis analysis = analyzer.analyze(t);
	assertThat(analysis).isNotNull();
	assertThat(analysis.getDescription()).isEqualTo(ANALYZER_DESCRIPTION);
}
 
Example 2
Source File: AbstractServiceBrokerWebAutoConfigurationTest.java    From spring-cloud-open-service-broker with Apache License 2.0 4 votes vote down vote up
protected void assertFailureAnalysis(Throwable t) {
	FailureAnalyzer analyzer = new RequiredServiceInstanceServiceBeanFailureAnalyzer();
	FailureAnalysis analysis = analyzer.analyze(t);
	assertThat(analysis).isNotNull();
	assertThat(analysis.getDescription()).isEqualTo(ANALYZER_DESCRIPTION);
}