Class RunResult
- java.lang.Object
-
- org.apache.maven.surefire.api.suite.RunResult
-
public class RunResult extends 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.- Author:
- Kristian Rosenvold
-
-
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, String failure, boolean timeout)
RunResult(int completedCount, int errors, int failures, int skipped, 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(Object o)
static RunResult
failure(RunResult accumulatedAtTimeout, Exception cause)
int
getCompletedCount()
int
getErrors()
Integer
getFailsafeCode()
String
getFailure()
int
getFailures()
int
getFlakes()
int
getSkipped()
int
hashCode()
boolean
isErrorFree()
boolean
isFailure()
boolean
isFailureOrTimeout()
boolean
isInternalError()
boolean
isTimeout()
static RunResult
noTestsRun()
static RunResult
timeout(RunResult accumulatedAtTimeout)
-
-
-
Field Detail
-
SUCCESS
public static final int SUCCESS
- See Also:
- Constant Field Values
-
FAILURE
public static final int FAILURE
- 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, String failure, boolean timeout)
-
RunResult
public RunResult(int completedCount, int errors, int failures, int skipped, int flakes, String failure, boolean timeout)
-
-
Method Detail
-
getCompletedCount
public int getCompletedCount()
-
getErrors
public int getErrors()
-
getFlakes
public int getFlakes()
-
getFailures
public int getFailures()
-
getSkipped
public int getSkipped()
-
getFailsafeCode
public Integer getFailsafeCode()
-
isErrorFree
public boolean isErrorFree()
-
isInternalError
public boolean isInternalError()
-
isFailureOrTimeout
public boolean isFailureOrTimeout()
-
isFailure
public boolean isFailure()
-
getFailure
public String getFailure()
-
isTimeout
public boolean isTimeout()
-
noTestsRun
public static RunResult noTestsRun()
-
-