public class RunResult
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
completedCount |
private int |
errors |
private java.lang.String |
failure |
private static int |
FAILURE |
private int |
failures |
private int |
flakes |
private static int |
NO_TESTS |
private int |
skipped |
static int |
SUCCESS |
private boolean |
timeout |
Constructor and Description |
---|
RunResult(int completedCount,
int errors,
int failures,
int skipped) |
RunResult(int completedCount,
int errors,
int failures,
int skipped,
int flakes) |
RunResult(int completedCount,
int errors,
int failures,
int skipped,
int flakes,
java.lang.String failure,
boolean timeout) |
RunResult(int completedCount,
int errors,
int failures,
int skipped,
java.lang.String failure,
boolean timeout) |
Modifier and Type | Method and Description |
---|---|
RunResult |
aggregate(RunResult other) |
boolean |
equals(java.lang.Object o) |
private static RunResult |
errorCode(RunResult other,
java.lang.String failure,
boolean timeout) |
static RunResult |
failure(RunResult accumulatedAtTimeout,
java.lang.Exception cause) |
int |
getCompletedCount() |
int |
getErrors() |
java.lang.Integer |
getFailsafeCode() |
java.lang.String |
getFailure() |
int |
getFailures() |
int |
getFlakes() |
int |
getSkipped() |
private static java.lang.String |
getStackTrace(java.lang.Exception e) |
int |
hashCode() |
boolean |
isErrorFree() |
boolean |
isFailure() |
boolean |
isFailureOrTimeout() |
boolean |
isInternalError() |
boolean |
isTimeout() |
static RunResult |
noTestsRun() |
static RunResult |
timeout(RunResult accumulatedAtTimeout) |
private final int completedCount
private final int errors
private final int failures
private final int skipped
private final int flakes
private final java.lang.String failure
private final boolean timeout
public static final int SUCCESS
private static final int FAILURE
private static final int NO_TESTS
public RunResult(int completedCount, int errors, int failures, int skipped)
public RunResult(int completedCount, int errors, int failures, int skipped, int flakes)
public RunResult(int completedCount, int errors, int failures, int skipped, java.lang.String failure, boolean timeout)
public RunResult(int completedCount, int errors, int failures, int skipped, int flakes, java.lang.String failure, boolean timeout)
private static RunResult errorCode(RunResult other, java.lang.String failure, boolean timeout)
private static java.lang.String getStackTrace(java.lang.Exception e)
public int getCompletedCount()
public int getErrors()
public int getFlakes()
public int getFailures()
public int getSkipped()
public java.lang.Integer getFailsafeCode()
public boolean isErrorFree()
public boolean isInternalError()
public boolean isFailureOrTimeout()
public boolean isFailure()
public java.lang.String getFailure()
public boolean isTimeout()
public static RunResult noTestsRun()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object