Package io.micronaut.test.support.sql
Class TestSqlAnnotationHandler
java.lang.Object
io.micronaut.test.support.sql.TestSqlAnnotationHandler
Static helper class to handle
Sql
annotations.- Since:
- 4.1.0
- Author:
- Tim Yates
-
Method Summary
-
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 allSql
annotations.- Parameters:
specDefinition
- The test classapplicationContext
- The application contextphase
- TheSql.Phase
to run the scripts in- Throws:
SQLException
- If an error occurs executing the SQLIOException
- If an error occurs reading the SQL
-