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 allSqlannotations.- Parameters:
specDefinition- The test classapplicationContext- The application contextphase- TheSql.Phaseto run the scripts in- Throws:
IOException- If an error occurs reading the SQL
-