private int determineMethodIterationCount(Method method) {
// Global override.
if (iterationsOverride != null)
return iterationsOverride;
Repeat repeat;
if ((repeat = method.getAnnotation(Repeat.class)) != null) {
return repeat.iterations();
}
if ((repeat = suiteClass.getAnnotation(Repeat.class)) != null) {
return repeat.iterations();
}
return DEFAULT_ITERATIONS;
}