private static Optional<OutcomeFormat> outcomeFormatFrom(String value) { try { return Optional.of(OutcomeFormat.valueOf(value.toUpperCase())); } catch (IllegalArgumentException e) { LOGGER.warn("Illegal outcome format ignored: " + value); return Optional.absent(); } }
public boolean accept(final File file, final String filename) { return (filename.toLowerCase(Locale.getDefault()).endsWith(formatConfiguration.getPreferredFormat().getExtension()) && (!filename.endsWith(".features.json")) && (!filename.endsWith("manifest.json")) && (!filename.startsWith(JUnitXMLOutcomeReporter.FILE_PREFIX))) ; } }
public boolean accept(final File file, final String filename) { return (filename.toLowerCase(Locale.getDefault()).endsWith(formatConfiguration.getPreferredFormat().getExtension()) && (!filename.endsWith(".features.json"))) ; } }
private static Optional<OutcomeFormat> outcomeFormatFrom(String value) { try { return Optional.of(OutcomeFormat.valueOf(value.toUpperCase())); } catch (IllegalArgumentException e) { LOGGER.warn("Illegal outcome format ignored: " + value); return Optional.absent(); } }
public boolean accept(final File file, final String filename) { return filename.toLowerCase(Locale.getDefault()).endsWith(formatConfiguration.getPreferredFormat().getExtension()); } }
private static Optional<OutcomeFormat> outcomeFormatFrom(String value) { try { return Optional.of(OutcomeFormat.valueOf(value.toUpperCase())); } catch (IllegalArgumentException e) { LOGGER.warn("Illegal outcome format ignored: " + value); return Optional.empty(); } }