Package io.cucumber.messages
Enum Messages.TestStepFinished.TestStepResult.Status
- java.lang.Object
-
- java.lang.Enum<Messages.TestStepFinished.TestStepResult.Status>
-
- io.cucumber.messages.Messages.TestStepFinished.TestStepResult.Status
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<Messages.TestStepFinished.TestStepResult.Status>
- Enclosing class:
- Messages.TestStepFinished.TestStepResult
public static enum Messages.TestStepFinished.TestStepResult.Status extends Enum<Messages.TestStepFinished.TestStepResult.Status> implements com.google.protobuf.ProtocolMessageEnum
Status of a `TestStep`. The ordinal values of statuses are significant. The status of a TestCase is computed by picking the status with the highest value for all of its steps. For example, if a TestCase has steps with statuses passed, undefined and skipped, then the pickle's status is undefined.
Protobuf enumio.cucumber.messages.TestStepFinished.TestStepResult.Status
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AMBIGUOUS
The step matched two or more step definitions.FAILED
The step matched one step definition and failed execution.PASSED
The step matched one step definition and passed execution.PENDING
The step matched one step definition and signalled pending during execution.SKIPPED
The step matched one step definition but was not executed because the previous step was not PASSED.UNDEFINED
The step matched no step definitions.UNKNOWN
The step hasn't been matched or executed.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static int
AMBIGUOUS_VALUE
The step matched two or more step definitions.static int
FAILED_VALUE
The step matched one step definition and failed execution.static int
PASSED_VALUE
The step matched one step definition and passed execution.static int
PENDING_VALUE
The step matched one step definition and signalled pending during execution.static int
SKIPPED_VALUE
The step matched one step definition but was not executed because the previous step was not PASSED.static int
UNDEFINED_VALUE
The step matched no step definitions.static int
UNKNOWN_VALUE
The step hasn't been matched or executed.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Messages.TestStepFinished.TestStepResult.Status
forNumber(int value)
static com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor()
com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType()
int
getNumber()
com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor()
static com.google.protobuf.Internal.EnumLiteMap<Messages.TestStepFinished.TestStepResult.Status>
internalGetValueMap()
static Messages.TestStepFinished.TestStepResult.Status
valueOf(int value)
Deprecated.static Messages.TestStepFinished.TestStepResult.Status
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static Messages.TestStepFinished.TestStepResult.Status
valueOf(String name)
Returns the enum constant of this type with the specified name.static Messages.TestStepFinished.TestStepResult.Status[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final Messages.TestStepFinished.TestStepResult.Status UNKNOWN
The step hasn't been matched or executed.
UNKNOWN = 0;
-
PASSED
public static final Messages.TestStepFinished.TestStepResult.Status PASSED
The step matched one step definition and passed execution.
PASSED = 1;
-
SKIPPED
public static final Messages.TestStepFinished.TestStepResult.Status SKIPPED
The step matched one step definition but was not executed because the previous step was not PASSED.
SKIPPED = 2;
-
PENDING
public static final Messages.TestStepFinished.TestStepResult.Status PENDING
The step matched one step definition and signalled pending during execution. This is the default behaviour of generated step definitions, which either throw a special PendingException, or return a special value indicating that it's pending. How to signal the pending status depends on the Cucumber implementation.
PENDING = 3;
-
UNDEFINED
public static final Messages.TestStepFinished.TestStepResult.Status UNDEFINED
The step matched no step definitions.
UNDEFINED = 4;
-
AMBIGUOUS
public static final Messages.TestStepFinished.TestStepResult.Status AMBIGUOUS
The step matched two or more step definitions.
AMBIGUOUS = 5;
-
FAILED
public static final Messages.TestStepFinished.TestStepResult.Status FAILED
The step matched one step definition and failed execution.
FAILED = 6;
-
UNRECOGNIZED
public static final Messages.TestStepFinished.TestStepResult.Status UNRECOGNIZED
-
-
Field Detail
-
UNKNOWN_VALUE
public static final int UNKNOWN_VALUE
The step hasn't been matched or executed.
UNKNOWN = 0;
- See Also:
- Constant Field Values
-
PASSED_VALUE
public static final int PASSED_VALUE
The step matched one step definition and passed execution.
PASSED = 1;
- See Also:
- Constant Field Values
-
SKIPPED_VALUE
public static final int SKIPPED_VALUE
The step matched one step definition but was not executed because the previous step was not PASSED.
SKIPPED = 2;
- See Also:
- Constant Field Values
-
PENDING_VALUE
public static final int PENDING_VALUE
The step matched one step definition and signalled pending during execution. This is the default behaviour of generated step definitions, which either throw a special PendingException, or return a special value indicating that it's pending. How to signal the pending status depends on the Cucumber implementation.
PENDING = 3;
- See Also:
- Constant Field Values
-
UNDEFINED_VALUE
public static final int UNDEFINED_VALUE
The step matched no step definitions.
UNDEFINED = 4;
- See Also:
- Constant Field Values
-
AMBIGUOUS_VALUE
public static final int AMBIGUOUS_VALUE
The step matched two or more step definitions.
AMBIGUOUS = 5;
- See Also:
- Constant Field Values
-
FAILED_VALUE
public static final int FAILED_VALUE
The step matched one step definition and failed execution.
FAILED = 6;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Messages.TestStepFinished.TestStepResult.Status[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Messages.TestStepFinished.TestStepResult.Status c : Messages.TestStepFinished.TestStepResult.Status.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Messages.TestStepFinished.TestStepResult.Status valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static Messages.TestStepFinished.TestStepResult.Status valueOf(int value)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
forNumber
public static Messages.TestStepFinished.TestStepResult.Status forNumber(int value)
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<Messages.TestStepFinished.TestStepResult.Status> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static Messages.TestStepFinished.TestStepResult.Status valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-