Enum Class Sql.Phase

java.lang.Object
java.lang.Enum<Sql.Phase>
io.micronaut.test.annotation.Sql.Phase
All Implemented Interfaces:
Serializable, Comparable<Sql.Phase>, Constable
Enclosing class:
Sql

public static enum Sql.Phase extends Enum<Sql.Phase>
The phase of the test to execute the SQL scripts.
  • Enum Constant Details

    • BEFORE_ALL

      public static final Sql.Phase BEFORE_ALL
      Execute the SQL before all tests.
    • BEFORE_EACH

      public static final Sql.Phase BEFORE_EACH
      Execute the SQL before each test.
    • AFTER_ALL

      public static final Sql.Phase AFTER_ALL
      Execute the SQL after all tests.
    • AFTER_EACH

      public static final Sql.Phase AFTER_EACH
      Execute the SQL after each test.
  • Method Details

    • values

      public static Sql.Phase[] 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

      public static Sql.Phase valueOf(String name)
      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 name
      NullPointerException - if the argument is null