Package randoop.main
Enum Class GenInputsAbstract.FlakyTestAction
- All Implemented Interfaces:
Serializable
,Comparable<GenInputsAbstract.FlakyTestAction>
,Constable
- Enclosing class:
- GenInputsAbstract
public static enum GenInputsAbstract.FlakyTestAction
extends Enum<GenInputsAbstract.FlakyTestAction>
Possible behaviors if Randoop generates a flaky test.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static GenInputsAbstract.FlakyTestAction[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HALT
Randoop halts with a diagnostic message. You can determine the responsible methods, fix or exclude them, and re-run Randoop. -
DISCARD
Discard the flaky test. This option should be a last resort. It is inefficient and unproductive for Randoop to produce and discard a lot of flaky tests. -
OUTPUT
Output the flaky test, but with flaky assertions commented out. When the value isOUTPUT
, Randoop also suggests methods under test that might have caused the flakiness. You should investigate them, fix or exclude them, then re-run Randoop.
-
-
Constructor Details
-
FlakyTestAction
private FlakyTestAction()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-