Package org.testng.internal
Class ExitCode
- java.lang.Object
-
- org.testng.internal.ExitCode
-
public class ExitCode extends java.lang.Object
|--------------------|---------|-------|------------|------------------------------------------| | FailedWithinSuccess| Skipped | Failed| Status Code| Remarks | |--------------------|---------|-------|------------|------------------------------------------| | 0 | 0 | 0 | 0 | Passed tests | | 0 | 0 | 1 | 1 | Failed tests | | 0 | 1 | 0 | 2 | Skipped tests | | 0 | 1 | 1 | 3 | Skipped/Failed tests | | 1 | 0 | 0 | 4 | FailedWithinSuccess tests | | 1 | 0 | 1 | 5 | FailedWithinSuccess/Failed tests | | 1 | 1 | 0 | 6 | FailedWithinSuccess/Skipped tests | | 1 | 1 | 1 | 7 | FailedWithinSuccess/Skipped/Failed tests | |--------------------|---------|-------|------------|------------------------------------------|
-
-
Field Summary
Fields Modifier and Type Field Description static int
HAS_NO_TEST
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getExitCode()
boolean
hasFailure()
static boolean
hasFailure(int returnCode)
boolean
hasFailureWithinSuccessPercentage()
static boolean
hasFailureWithinSuccessPercentage(int returnCode)
boolean
hasSkip()
static boolean
hasSkipped(int returnCode)
static ExitCode
newExitCodeRepresentingFailure()
-
-
-
Field Detail
-
HAS_NO_TEST
public static final int HAS_NO_TEST
- See Also:
- Constant Field Values
-
-
Method Detail
-
hasFailureWithinSuccessPercentage
public static boolean hasFailureWithinSuccessPercentage(int returnCode)
-
hasSkipped
public static boolean hasSkipped(int returnCode)
-
hasFailure
public static boolean hasFailure(int returnCode)
-
newExitCodeRepresentingFailure
public static ExitCode newExitCodeRepresentingFailure()
-
hasFailure
public boolean hasFailure()
-
hasSkip
public boolean hasSkip()
-
hasFailureWithinSuccessPercentage
public boolean hasFailureWithinSuccessPercentage()
-
getExitCode
public int getExitCode()
-
-