|
|
|
|
@ -222,6 +222,7 @@ class ImportsContextCustomizer implements ContextCustomizer {
@@ -222,6 +222,7 @@ class ImportsContextCustomizer implements ContextCustomizer {
|
|
|
|
|
filters.add(new JavaLangAnnotationFilter()); |
|
|
|
|
filters.add(new KotlinAnnotationFilter()); |
|
|
|
|
filters.add(new SpockAnnotationFilter()); |
|
|
|
|
filters.add(new JunitAnnotationFilter()); |
|
|
|
|
ANNOTATION_FILTERS = Collections.unmodifiableSet(filters); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -384,4 +385,15 @@ class ImportsContextCustomizer implements ContextCustomizer {
@@ -384,4 +385,15 @@ class ImportsContextCustomizer implements ContextCustomizer {
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* {@link AnnotationFilter} for Spock annotations. |
|
|
|
|
*/ |
|
|
|
|
private static final class JunitAnnotationFilter implements AnnotationFilter { |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public boolean isIgnored(Annotation annotation) { |
|
|
|
|
return annotation.annotationType().getName().startsWith("org.junit."); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|