* Find {@link ru.yandex.qatools.allure.annotations.Issues} annotation and return respective key
*
* @return issue keys or empty array if annotation isn't present
*/
public String[] getIssueKeys() {
Issues issues = getAnnotation(Issues.class);
if (issues == null) {
return new String[0];
}
List<String> keys = new ArrayList<>();
for (Issue issue : issues.value()) {
keys.add(issue.value());
}
return keys.toArray(new String[keys.size()]);
}