BMScript methodSingleScriptAnnotation = method.getAnnotation(BMScript.class);
BMScripts methodMultiScriptAnnotation = method.getAnnotation(BMScripts.class);
BMRule methodSingleRuleAnnotation = method.getAnnotation(BMRule.class);
BMRules methodMultiRuleAnnotation = method.getAnnotation(BMRules.class);
if (methodMultiRuleAnnotation != null && methodSingleRuleAnnotation != null) {
throw new TestNGException("Use either BMRule or BMRules annotation but not both");
}
if (methodMultiScriptAnnotation != null && methodSingleScriptAnnotation != null) {
throw new TestNGException("Use either BMScript or BMScripts annotation but not both");
}
Class<?> testKlazz = method.getDeclaringClass();
// load the config before doing anything else
BMUnitConfigState.pushConfigurationState(methodConfigAnnotation, method);
// we load scripts before inline rules