Package org.dalesbred.junit
Enum TransactionalTests.RollbackPolicy
- java.lang.Object
-
- java.lang.Enum<TransactionalTests.RollbackPolicy>
-
- org.dalesbred.junit.TransactionalTests.RollbackPolicy
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TransactionalTests.RollbackPolicy>
- Enclosing class:
- TransactionalTests
public static enum TransactionalTests.RollbackPolicy extends java.lang.Enum<TransactionalTests.RollbackPolicy>
Specified the rollback-policy for tests.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ROLLBACK_ALWAYSROLLBACK_NEVERROLLBACK_ON_FAILURE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TransactionalTests.RollbackPolicyvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TransactionalTests.RollbackPolicy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ROLLBACK_ON_FAILURE
public static final TransactionalTests.RollbackPolicy ROLLBACK_ON_FAILURE
-
ROLLBACK_NEVER
public static final TransactionalTests.RollbackPolicy ROLLBACK_NEVER
-
ROLLBACK_ALWAYS
public static final TransactionalTests.RollbackPolicy ROLLBACK_ALWAYS
-
-
Method Detail
-
values
public static TransactionalTests.RollbackPolicy[] 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 (TransactionalTests.RollbackPolicy c : TransactionalTests.RollbackPolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TransactionalTests.RollbackPolicy 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
-
-