List<Annotation> annotations = getAnnotation(declaredAnnotations, SqlSetUp.class);
for (Annotation annotation : annotations) {
SqlSetUp sqlBeforeAnnotation = (SqlSetUp) annotation;
sqlRunner.runSqlFiles(
sqlBeforeAnnotation.files(),
getDataSource(appContext, sqlBeforeAnnotation.dataSource()));
}
}
private List<Annotation> getAnnotation(Annotation[] declaredAnnotations, Class<? extends Annotation> annotationType) {
List<Annotation> result = new ArrayList<Annotation>();