Ignore spock.lang annotations when creating test context cache key

See gh-7524
Closes gh-8252
This commit is contained in:
erlholmq 2017-02-09 23:00:47 +01:00 committed by Andy Wilkinson
parent 47a59a92d1
commit 8f18df8a9c

View File

@ -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.");
}
}