in internal/test-support-spock/src/main/groovy/geb/spock/RetryFixturesExtension.groovy [35:73]
void visitSpecAnnotation(RetryFixtures annotation, SpecInfo spec) {
def allSetupMethods = spec.bottomSpec.allFixtureMethods
.findAll { it.kind in [SETUP, CLEANUP] } as Collection<MethodInfo>
allSetupMethods*.addInterceptor(
new RetryFeatureInterceptor(new Retry() {
@Override
Class<? extends Throwable>[] exceptions() {
[Exception, AssertionError]
}
@Override
Class<? extends Closure> condition() {
annotation.condition()
}
@Override
int count() {
3
}
@Override
int delay() {
0
}
@Override
Retry.Mode mode() {
throw new UnsupportedOperationException()
}
@Override
Class<? extends Annotation> annotationType() {
Retry
}
})
)
}