return existingFiles;
}
private String[] getResourceDefaultExtensions(Method method) {
DefaultExtensions annotation = method.getReturnType().getAnnotation(
DefaultExtensions.class);
if (annotation == null) {
throw new GwtTestResourcesException(
method.getReturnType().getSimpleName()
+ " does not define a default extension for resource file. You should use a correct @"
+ Source.class.getSimpleName() + " annotation on "
+ method.getDeclaringClass().getSimpleName() + "." + method.getName()
+ "() method");
} else {
return annotation.value();
}
}