in base/src/main/java/org/apache/sling/performance/FrameworkPerformanceMethod.java [312:326]
private Method getSpecificTestMethod(Class testClass,
Class<? extends Annotation> methodAnnotation)
throws InvalidAttributesException, IllegalAccessException,
InstantiationException {
Method[] methodsToReturn = getSpecificMethods(testClass, methodAnnotation);
Method methodToReturn = null;
if (methodsToReturn.length == 1) {
methodToReturn = methodsToReturn[0];
} else if (methodsToReturn.length > 1) {
throw new InvalidAttributesException("Only 1 non parameterized before method accepted");
}
return methodToReturn;
}