public enum Status extends java.lang.Enum<Status>
The difference between errors and failures, if any, is determined by the test frameworks. JUnit and specs2 differentiate between errors and failures. ScalaTest reports everything (both assertion failures and unexpected errors) as failures. JUnit and ScalaTest support ignored tests. ScalaTest and specs2 support a notion of pending tests. ScalaTest differentiates between ignored and canceled tests, whereas specs2 only supports skipped tests, which are implemented like ScalaTest's canceled tests. TestNG uses "skipped" to report tests that were not executed because of failures in dependencies, which is also similar to canceled tests in ScalaTest.
Enum Constant and Description |
---|
Canceled
Indicates a test was canceled.
|
Error
Indicates an "error" occurred.
|
Failure
Indicates a "failure" occurred.
|
Ignored
Indicates a test was ignored.
|
Pending
Indicates a test was declared as pending.
|
Skipped
Indicates a test was skipped.
|
Success
Indicates a test succeeded.
|
Modifier and Type | Method and Description |
---|---|
static Status |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Status Success
public static final Status Error
public static final Status Failure
public static final Status Skipped
public static final Status Ignored
public static final Status Canceled
public static final Status Pending
public static Status[] values()
for (Status c : Status.values()) System.out.println(c);
public static Status valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null