Class TestSqlAnnotationHandler

java.lang.Object
io.micronaut.test.support.sql.TestSqlAnnotationHandler

@Internal public final class TestSqlAnnotationHandler extends Object
Static helper class to handle Sql annotations.
Since:
4.1.0
Author:
Tim Yates
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    handle(io.micronaut.inject.BeanDefinition<?> specDefinition, io.micronaut.context.ApplicationContext applicationContext, Sql.Phase phase)
    Given a spec definition and application context, find and process all Sql annotations.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • handle

      public static void handle(io.micronaut.inject.BeanDefinition<?> specDefinition, io.micronaut.context.ApplicationContext applicationContext, Sql.Phase phase) throws IOException
      Given a spec definition and application context, find and process all Sql annotations.
      Parameters:
      specDefinition - The test class
      applicationContext - The application context
      phase - The Sql.Phase to run the scripts in
      Throws:
      SQLException - If an error occurs executing the SQL
      IOException - If an error occurs reading the SQL