try {
CsvDirectory csvDirectoryAnnotation = GwtReflectionUtils.getAnnotation(clazz,
CsvDirectory.class);
if (csvDirectoryAnnotation == null) {
throw new GwtTestCsvException("Missing annotation \'@"
+ CsvDirectory.class.getSimpleName() + "\' on class [" + clazz.getName() + "]");
}
initCsvTests(csvDirectoryAnnotation);
CsvMacros csvMacrosAnnotation = GwtReflectionUtils.getAnnotation(clazz, CsvMacros.class);
initCsvMacros(csvMacrosAnnotation);
initTestMethods(clazz, csvDirectoryAnnotation);
} catch (Exception e) {
if (GwtTestException.class.isInstance(e)) {
throw (GwtTestException) e;
}
throw new GwtTestCsvException(e);
}
}