本文整理汇总了Java中org.springframework.boot.actuate.endpoint.AutoConfigurationReportEndpoint.Report类的典型用法代码示例。如果您正苦于以下问题:Java Report类的具体用法?Java Report怎么用?Java Report使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Report类属于org.springframework.boot.actuate.endpoint.AutoConfigurationReportEndpoint包,在下文中一共展示了Report类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: Report
import org.springframework.boot.actuate.endpoint.AutoConfigurationReportEndpoint.Report; //导入依赖的package包/类
public Report(ConditionEvaluationReport report) {
this.positiveMatches = new LinkedMultiValueMap<String, MessageAndCondition>();
this.negativeMatches = new LinkedMultiValueMap<String, MessageAndCondition>();
this.exclusions = report.getExclusions();
for (Map.Entry<String, ConditionAndOutcomes> entry : report
.getConditionAndOutcomesBySource().entrySet()) {
add(entry.getValue().isFullMatch() ? this.positiveMatches
: this.negativeMatches, entry.getKey(), entry.getValue());
}
if (report.getParent() != null) {
this.parent = new Report(report.getParent());
}
}
开发者ID:vikrammane23,项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,代码行数:15,代码来源:AutoConfigurationReportEndpoint.java
示例2: invoke
import org.springframework.boot.actuate.endpoint.AutoConfigurationReportEndpoint.Report; //导入依赖的package包/类
@Test
public void invoke() throws Exception {
this.context = new AnnotationConfigApplicationContext();
this.context.register(this.configClass);
this.context.refresh();
Report report = getEndpointBean().invoke();
assertThat(report.getPositiveMatches()).isEmpty();
assertThat(report.getNegativeMatches()).containsKey("a");
assertThat(report.getExclusions()).contains("com.foo.Bar");
}
开发者ID:vikrammane23,项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,代码行数:11,代码来源:AutoConfigurationReportEndpointTests.java
示例3: invoke
import org.springframework.boot.actuate.endpoint.AutoConfigurationReportEndpoint.Report; //导入依赖的package包/类
@Test
public void invoke() throws Exception {
this.context = new AnnotationConfigApplicationContext();
this.context.register(this.configClass);
this.context.refresh();
Report report = getEndpointBean().invoke();
assertTrue(report.getPositiveMatches().isEmpty());
assertTrue(report.getNegativeMatches().containsKey("a"));
assertTrue(report.getExclusions().contains("com.foo.Bar"));
}
示例4: invoke
import org.springframework.boot.actuate.endpoint.AutoConfigurationReportEndpoint.Report; //导入依赖的package包/类
@Override
public Report invoke() {
return new Report(this.autoConfigurationReport);
}
开发者ID:vikrammane23,项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,代码行数:5,代码来源:AutoConfigurationReportEndpoint.java
示例5: getParent
import org.springframework.boot.actuate.endpoint.AutoConfigurationReportEndpoint.Report; //导入依赖的package包/类
public Report getParent() {
return this.parent;
}
开发者ID:vikrammane23,项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,代码行数:4,代码来源:AutoConfigurationReportEndpoint.java