Enum GuiceyTestTime
- java.lang.Object
-
- java.lang.Enum<GuiceyTestTime>
-
- ru.vyarus.dropwizard.guice.test.jupiter.ext.conf.track.GuiceyTestTime
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<GuiceyTestTime>
public enum GuiceyTestTime extends java.lang.Enum<GuiceyTestTime>
Guicey timers for test extensions performance measurement.Note that actions may be performed under different test phases (e.g., application could start in before all for all test methods, but could be in before each for per-method instance tests).
- Since:
- 04.02.2025
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AfterAllAfter all time.AfterEachAfter each time.BeforeAllBefore all time.BeforeEachBefore each time.DropwizardTestSupportCreation of the dropwizard or guicey test support object.GuiceInjectionGuice injectMemebers() executed for test instance.GuiceyFieldsSearchGuicey hook and setup fields found and resolved (reflection).HooksRegistrationRegistration of hooks resolved from fields and declared in extension (application hooks registration not tracked).ReusableAppWarningsHook and setup fields searched to verify correctness (different from fields analysis below).SetupObjectsExecutionSetup objects executed.SupportStartTest support object before() executed (application start plus configuration overrides).SupportStopTest support after() executed (application stopped).TestListenersTest listeners time (registered in setup objects).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDisplayName()static GuiceyTestTimevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static GuiceyTestTime[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BeforeAll
public static final GuiceyTestTime BeforeAll
Before all time.
-
BeforeEach
public static final GuiceyTestTime BeforeEach
Before each time.
-
AfterEach
public static final GuiceyTestTime AfterEach
After each time.
-
AfterAll
public static final GuiceyTestTime AfterAll
After all time.
-
GuiceInjection
public static final GuiceyTestTime GuiceInjection
Guice injectMemebers() executed for test instance.
-
ReusableAppWarnings
public static final GuiceyTestTime ReusableAppWarnings
Hook and setup fields searched to verify correctness (different from fields analysis below).
-
GuiceyFieldsSearch
public static final GuiceyTestTime GuiceyFieldsSearch
Guicey hook and setup fields found and resolved (reflection).
-
HooksRegistration
public static final GuiceyTestTime HooksRegistration
Registration of hooks resolved from fields and declared in extension (application hooks registration not tracked).
-
SetupObjectsExecution
public static final GuiceyTestTime SetupObjectsExecution
Setup objects executed.
-
DropwizardTestSupport
public static final GuiceyTestTime DropwizardTestSupport
Creation of the dropwizard or guicey test support object.
-
SupportStart
public static final GuiceyTestTime SupportStart
Test support object before() executed (application start plus configuration overrides).
-
SupportStop
public static final GuiceyTestTime SupportStop
Test support after() executed (application stopped).
-
TestListeners
public static final GuiceyTestTime TestListeners
Test listeners time (registered in setup objects).
-
-
Method Detail
-
values
public static GuiceyTestTime[] 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 (GuiceyTestTime c : GuiceyTestTime.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GuiceyTestTime 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
-
getDisplayName
public java.lang.String getDisplayName()
- Returns:
- display name
-
-