Package org.apache.juneau.bct.junit
Enum Class Scope
- All Implemented Interfaces:
Serializable,Comparable<Scope>,Constable
Lifecycle scope for a
@TestBean-declared override.
Selects whether the override is rebuilt on every test method (METHOD) or shared across all test
methods in a single test class (CLASS).
See Also:
TestBean- The annotation that carries this scope.JuneauBeanStoreExtension- The JUnit 5 extension that honors this scope.
- Since:
- 10.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
-
Enum Constant Details
-
METHOD
Per-test scope — the override is rebuilt for every@Testmethod.Default scope. Discovered at
beforeEachand dropped atafterEach. -
CLASS
Per-class scope — the override is built once and shared by every@Testmethod in the class.Discovered at
beforeAlland dropped atafterAll. Onlystaticfields and methods may declareCLASS-scope overrides; instance members are not visible atbeforeAlltime.
-
-
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
-