Java 类org.junit.platform.engine.TestExecutionResult.Status 实例源码

项目:junit-extensions    文件:RecordingExecutionListener.java   
public Stream<ExecutionEvent> getFinishedEventsByStatus(Status status) {
  return getEventsByType(FINISHED)
      .filter(
          byPayload(
              TestExecutionResult.class, where(TestExecutionResult::getStatus, isEqual(status))));
}
项目:junit-pioneer    文件:TestExecutionResultConditions.java   
public static Condition<TestExecutionResult> status(Status expectedStatus) {
    return new Condition<>(where(TestExecutionResult::getStatus, isEqual(expectedStatus)), "status is %s",
        expectedStatus);
}
项目:junit-pioneer    文件:ExecutionEventConditions.java   
private static Condition<ExecutionEvent> finishedWithCause(Status expectedStatus,
        Condition<? super Throwable> causeCondition) {
    return finished(allOf(status(expectedStatus), cause(causeCondition)));
}
项目:junit-pioneer    文件:ExecutionEventRecorder.java   
public long getTestSuccessfulCount() {
    return getTestFinishedCount(Status.SUCCESSFUL);
}
项目:junit-pioneer    文件:ExecutionEventRecorder.java   
public long getTestAbortedCount() {
    return getTestFinishedCount(Status.ABORTED);
}
项目:junit-pioneer    文件:ExecutionEventRecorder.java   
public long getTestFailedCount() {
    return getTestFinishedCount(Status.FAILED);
}
项目:junit-pioneer    文件:ExecutionEventRecorder.java   
public List<ExecutionEvent> getSuccessfulTestFinishedEvents() {
    return testFinishedEvents(Status.SUCCESSFUL).collect(toList());
}
项目:junit-pioneer    文件:ExecutionEventRecorder.java   
public List<ExecutionEvent> getFailedTestFinishedEvents() {
    return testFinishedEvents(Status.FAILED).collect(toList());
}
项目:junit-pioneer    文件:ExecutionEventRecorder.java   
private long getTestFinishedCount(Status status) {
    return testFinishedEvents(status).count();
}
项目:junit-pioneer    文件:ExecutionEventRecorder.java   
private Stream<ExecutionEvent> testFinishedEvents(Status status) {
    return testEventsByType(FINISHED).filter(
        byPayload(TestExecutionResult.class, where(TestExecutionResult::getStatus, isEqual(status))));
}