Package org.apache.maven.surefire.suite
Class RunResult
- java.lang.Object
-
- org.apache.maven.surefire.suite.RunResult
-
public class RunResult extends java.lang.Object
Represents a test-run-result; this may be from a single test run or an aggregated result.
In the case of timeout==true, the run-counts reflect the state of the test-run at the time of the timeout.
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
completedCount
private final int completedCount
-
errors
private final int errors
-
failures
private final int failures
-
skipped
private final int skipped
-
flakes
private final int flakes
-
failure
private final java.lang.String failure
-
timeout
private final boolean timeout
-
SUCCESS
public static final int SUCCESS
- See Also:
- Constant Field Values
-
FAILURE
private static final int FAILURE
- See Also:
- Constant Field Values
-
NO_TESTS
private static final int NO_TESTS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RunResult
public RunResult(int completedCount, int errors, int failures, int skipped)
-
RunResult
public RunResult(int completedCount, int errors, int failures, int skipped, int flakes)
-
RunResult
public RunResult(int completedCount, int errors, int failures, int skipped, java.lang.String failure, boolean timeout)
-
RunResult
public RunResult(int completedCount, int errors, int failures, int skipped, int flakes, java.lang.String failure, boolean timeout)
-
-
Method Detail
-
errorCode
private static RunResult errorCode(RunResult other, java.lang.String failure, boolean timeout)
-
getStackTrace
private static java.lang.String getStackTrace(java.lang.Exception e)
-
getCompletedCount
public int getCompletedCount()
-
getErrors
public int getErrors()
-
getFlakes
public int getFlakes()
-
getFailures
public int getFailures()
-
getSkipped
public int getSkipped()
-
getFailsafeCode
public java.lang.Integer getFailsafeCode()
-
isErrorFree
public boolean isErrorFree()
-
isInternalError
public boolean isInternalError()
-
isFailureOrTimeout
public boolean isFailureOrTimeout()
-
isFailure
public boolean isFailure()
-
getFailure
public java.lang.String getFailure()
-
isTimeout
public boolean isTimeout()
-
noTestsRun
public static RunResult noTestsRun()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-