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 AMBIGUOUSThe step matched two or more step definitions.FAILEDThe step matched one step definition and failed execution.PASSEDThe step matched one step definition and passed execution.PENDINGThe step matched one step definition and signalled pending during execution.SKIPPEDThe step matched one step definition but was not executed because the previous step was not PASSED.UNDEFINEDThe step matched no step definitions.UNKNOWNThe step hasn't been matched or executed.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intAMBIGUOUS_VALUEThe step matched two or more step definitions.static intFAILED_VALUEThe step matched one step definition and failed execution.static intPASSED_VALUEThe step matched one step definition and passed execution.static intPENDING_VALUEThe step matched one step definition and signalled pending during execution.static intSKIPPED_VALUEThe step matched one step definition but was not executed because the previous step was not PASSED.static intUNDEFINED_VALUEThe step matched no step definitions.static intUNKNOWN_VALUEThe 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.StatusforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<Messages.TestStepFinished.TestStepResult.Status>internalGetValueMap()static Messages.TestStepFinished.TestStepResult.StatusvalueOf(int value)Deprecated.static Messages.TestStepFinished.TestStepResult.StatusvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static Messages.TestStepFinished.TestStepResult.StatusvalueOf(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:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin 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:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein 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
-
-