Package de.gebit.integrity.fixtures
Enum ExtendedResultFixture.FixtureInvocationResult
- java.lang.Object
-
- java.lang.Enum<ExtendedResultFixture.FixtureInvocationResult>
-
- de.gebit.integrity.fixtures.ExtendedResultFixture.FixtureInvocationResult
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ExtendedResultFixture.FixtureInvocationResult>
- Enclosing interface:
- ExtendedResultFixture
public static enum ExtendedResultFixture.FixtureInvocationResult extends java.lang.Enum<ExtendedResultFixture.FixtureInvocationResult>
The possible results of a fixture method invocation.- Author:
- Rene Schneider - initial API and implementation
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXCEPTION
An exception was thrown during invocation.FAILURE
The invocation was successful, but the test comparison did fail (result doesn't match the expected value).SUCCESS
The method invocation was successful (in case of tests: the test comparison was successful).
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ExtendedResultFixture.FixtureInvocationResult
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ExtendedResultFixture.FixtureInvocationResult[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUCCESS
public static final ExtendedResultFixture.FixtureInvocationResult SUCCESS
The method invocation was successful (in case of tests: the test comparison was successful).
-
FAILURE
public static final ExtendedResultFixture.FixtureInvocationResult FAILURE
The invocation was successful, but the test comparison did fail (result doesn't match the expected value). This value is not valid for call fixtures.
-
EXCEPTION
public static final ExtendedResultFixture.FixtureInvocationResult EXCEPTION
An exception was thrown during invocation.
-
-
Method Detail
-
values
public static ExtendedResultFixture.FixtureInvocationResult[] 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 (ExtendedResultFixture.FixtureInvocationResult c : ExtendedResultFixture.FixtureInvocationResult.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ExtendedResultFixture.FixtureInvocationResult valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-