de.bechte.junit.runners.validation
Enum FixtureValidator
java.lang.Object
java.lang.Enum<FixtureValidator>
de.bechte.junit.runners.validation.FixtureValidator
- All Implemented Interfaces:
- TestClassValidator, Serializable, Comparable<FixtureValidator>
public enum FixtureValidator
- extends Enum<FixtureValidator>
- implements TestClassValidator
The FixtureValidators validate methods annotated with @BeforeClass, @Before, @AfterClass, and @After.
These methods must be public accessible and must not have any arguments. If a method violates this it is reported
in the List of errors.
|
Method Summary |
void |
validate(org.junit.runners.model.TestClass testClass,
List<Throwable> errors)
Validates the given TestClass and adds all errors to the given List. |
static FixtureValidator |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static FixtureValidator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
BEFORE_CLASS_METHODS
public static final FixtureValidator BEFORE_CLASS_METHODS
AFTER_CLASS_METHODS
public static final FixtureValidator AFTER_CLASS_METHODS
BEFORE_METHODS
public static final FixtureValidator BEFORE_METHODS
AFTER_METHODS
public static final FixtureValidator AFTER_METHODS
TEST_METHODS
public static final FixtureValidator TEST_METHODS
values
public static FixtureValidator[] 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 (FixtureValidator c : FixtureValidator.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static FixtureValidator 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 name
NullPointerException - if the argument is null
validate
public void validate(org.junit.runners.model.TestClass testClass,
List<Throwable> errors)
- Description copied from interface:
TestClassValidator
- Validates the given
TestClass and adds all errors to the given List.
- Specified by:
validate in interface TestClassValidator
- Parameters:
testClass - the TestClass to validateerrors - the List of errors
Copyright © 2015. All rights reserved.