Ignore spock.lang annotations when creating test context cache key

See gh-7524
Closes gh-8252
pull/8458/head
erlholmq 8 years ago committed by Andy Wilkinson
parent 47a59a92d1
commit 8f18df8a9c

@ -324,8 +324,8 @@ class ImportsContextCustomizer implements ContextCustomizer {
@Override
public boolean isIgnored(Annotation annotation) {
return annotation.annotationType().getName()
.startsWith("org.spockframework.");
return annotation.annotationType().getName().startsWith("org.spockframework.") ||
annotation.annotationType().getName().startsWith("spock.");
}
}

Loading…
Cancel
Save