Enum 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
      AfterAll
      After all time.
      AfterEach
      After each time.
      BeforeAll
      Before all time.
      BeforeEach
      Before each time.
      DropwizardTestSupport
      Creation of the dropwizard or guicey test support object.
      GuiceInjection
      Guice injectMemebers() executed for test instance.
      GuiceyFieldsSearch
      Guicey hook and setup fields found and resolved (reflection).
      HooksRegistration
      Registration of hooks resolved from fields and declared in extension (application hooks registration not tracked).
      ReusableAppWarnings
      Hook and setup fields searched to verify correctness (different from fields analysis below).
      SetupObjectsExecution
      Setup objects executed.
      SupportStart
      Test support object before() executed (application start plus configuration overrides).
      SupportStop
      Test support after() executed (application stopped).
      TestListeners
      Test listeners time (registered in setup objects).
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDisplayName()  
      static GuiceyTestTime valueOf​(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.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • 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 name
        java.lang.NullPointerException - if the argument is null
      • getDisplayName

        public java.lang.String getDisplayName()
        Returns:
        display name