/**
* Gets repeat annotation, if any.
* Method level definition overrides class level definition.
*/
private Repeat getRepeatable(FrameworkMethod method) {
Repeat repeatable = method.getAnnotation(Repeat.class);
if (repeatable == null) {
repeatable = super.getTestClass().getJavaClass().getAnnotation(Repeat.class);
}
return repeatable;
}