Search in sources :

Example 1 with FailureAnalyzer

use of org.springframework.boot.diagnostics.FailureAnalyzer in project spring-cloud-open-service-broker by spring-cloud.

the class AbstractServiceBrokerWebAutoConfigurationTest method assertFailureAnalysis.

protected void assertFailureAnalysis(Throwable t) {
    FailureAnalyzer analyzer = new RequiredServiceInstanceServiceBeanFailureAnalyzer();
    FailureAnalysis analysis = analyzer.analyze(t);
    assertThat(analysis).isNotNull();
    assertThat(analysis.getDescription()).isEqualTo(ANALYZER_DESCRIPTION);
}
Also used : FailureAnalysis(org.springframework.boot.diagnostics.FailureAnalysis) FailureAnalyzer(org.springframework.boot.diagnostics.FailureAnalyzer)

Example 2 with FailureAnalyzer

use of org.springframework.boot.diagnostics.FailureAnalyzer in project spring-cloud-open-service-broker by spring-cloud.

the class ServiceBrokerAutoConfigurationTest method assertFailureAnalysis.

private void assertFailureAnalysis(Throwable t) {
    FailureAnalyzer analyzer = new RequiredCatalogBeanFailureAnalyzer();
    FailureAnalysis analysis = analyzer.analyze(t);
    assertThat(analysis).isNotNull();
    assertThat(analysis.getDescription()).isEqualTo(ANALYZER_DESCRIPTION);
}
Also used : FailureAnalysis(org.springframework.boot.diagnostics.FailureAnalysis) FailureAnalyzer(org.springframework.boot.diagnostics.FailureAnalyzer)

Aggregations

FailureAnalysis (org.springframework.boot.diagnostics.FailureAnalysis)2 FailureAnalyzer (org.springframework.boot.diagnostics.FailureAnalyzer)2