private boolean filesNotSpecified(T annotation) { final String[] specifiedFileNames = extractor.extract(annotation); return specifiedFileNames.length == 0 || "".equals(specifiedFileNames[0].trim()); }
@Override public Collection<String> getResourceFileNames(Method testMethod) { final T annotation = getResourceAnnotation(testMethod); if (!extractor.shouldExtract(annotation)) { return Collections.emptyList(); } if (filesNotSpecified(annotation)) { return Collections.singletonList(getDefaultFileName(testMethod)); } return Arrays.asList(extractor.extract(annotation)); }
@Override public Collection<String> getResourceFileNames(Method testMethod) { final T annotation = getResourceAnnotation(testMethod); if (!extractor.shouldExtract(annotation)) { return Collections.emptyList(); } if (filesNotSpecified(annotation)) { return Arrays.asList(getDefaultFileName(testMethod)); } return Arrays.asList(extractor.extract(annotation)); }
@Override public Collection<String> getResourceFileNames(Method testMethod) { final T annotation = getResourceAnnotation(testMethod); if (!extractor.shouldExtract(annotation)) { return Collections.emptyList(); } if (filesNotSpecified(annotation)) { return Arrays.asList(getDefaultFileName(testMethod)); } return Arrays.asList(extractor.extract(annotation)); }
private boolean filesNotSpecified(T annotation) { final String[] specifiedFileNames = extractor.extract(annotation); return specifiedFileNames.length == 0 || "".equals(specifiedFileNames[0].trim()); }
private boolean filesNotSpecified(T annotation) { final String[] specifiedFileNames = extractor.extract(annotation); return specifiedFileNames.length == 0 || "".equals(specifiedFileNames[0].trim()); }