@Override protected ComponentScan.Filter[] getFilters(FilterType type) { switch (type) { case INCLUDE: return this.annotation.includeFilters(); case EXCLUDE: return this.annotation.excludeFilters(); } throw new IllegalStateException("Unsupported type " + type); }
@Override protected boolean isUseDefaultFilters() { return this.annotation.useDefaultFilters(); }
@Override protected String[] getProperties(Class<?> testClass) { JdbcTest annotation = AnnotatedElementUtils.getMergedAnnotation(testClass, JdbcTest.class); return (annotation != null) ? annotation.properties() : null; }