Skip to content

Commit 8f18df8

Browse files
erlholmqwilkinsona
authored andcommitted
Ignore spock.lang annotations when creating test context cache key
See gh-7524 Closes gh-8252
1 parent 47a59a9 commit 8f18df8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-boot-test/src/main/java/org/springframework/boot/test/context/ImportsContextCustomizer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,8 @@ private static final class SpockAnnotationFilter implements AnnotationFilter {
324324

325325
@Override
326326
public boolean isIgnored(Annotation annotation) {
327-
return annotation.annotationType().getName()
328-
.startsWith("org.spockframework.");
327+
return annotation.annotationType().getName().startsWith("org.spockframework.") ||
328+
annotation.annotationType().getName().startsWith("spock.");
329329
}
330330

331331
}

0 commit comments

Comments
 (0)