"In annotation @OutputDir you have to specify either 'value' or 'systemProperty'");
}
protected String getSuiteFilter(Class<?> klass)
throws Exception {
SuiteFilter suiteFilterAnnotation = klass.getAnnotation(SuiteFilter.class);
if (suiteFilterAnnotation == null) {
return null;
}
if (!"".equals(suiteFilterAnnotation.value())) {
return suiteFilterAnnotation.value();
}
if (!"".equals(suiteFilterAnnotation.systemProperty())) {
return System.getProperty(suiteFilterAnnotation.systemProperty());
}
throw new InitializationError(
"In annotation @SuiteFilter you have to specify either 'value' or 'systemProperty'");
}