for(Map.Entry<Class, Set<ITestNGMethod>> entry: methodsMap.entrySet()) {
Class clazz= entry.getKey();
Set<ITestNGMethod> methodList= entry.getValue();
// @author Borojevic
// Need to check all the methods, not just @Test ones.
XmlClass xmlClass= new XmlClass(clazz.getName(), Boolean.FALSE);
List<XmlInclude> methodNames= Lists.newArrayList(methodList.size());
for(ITestNGMethod m: methodList) {
methodNames.add(new XmlInclude(m.getMethod().getName(), m.getFailedInvocationNumbers()));
}
xmlClass.setIncludedMethods(methodNames);
result.add(xmlClass);
}
return result;