public OutcomeFormat getFormat() { return formatConfiguration.getPreferredFormat(); }
public OutcomeFormat getFormat() { return formatConfiguration.getPreferredFormat(); }
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 AcceptanceTestLoader getOutcomeReporter() { switch (formatConfiguration.getPreferredFormat()) { case XML: return new XMLTestOutcomeReporter(); case JSON: return new JSONTestOutcomeReporter(); default: throw new IllegalArgumentException("Unsupported report format: " + formatConfiguration.getPreferredFormat()); } } private class SerializedOutcomeFilenameFilter implements FilenameFilter {
private AcceptanceTestLoader getOutcomeReporter() { switch (formatConfiguration.getPreferredFormat()) { case XML: return new XMLTestOutcomeReporter(); case JSON: return new JSONTestOutcomeReporter(); default: throw new IllegalArgumentException("Unsupported report format: " + formatConfiguration.getPreferredFormat()); } }
public AcceptanceTestLoader getOutcomeReporter() { switch (formatConfiguration.getPreferredFormat()) { case XML: return new XMLTestOutcomeReporter(); case JSON: return new JSONTestOutcomeReporter(); default: throw new IllegalArgumentException("Unsupported report format: " + formatConfiguration.getPreferredFormat()); } } private class SerializedOutcomeFilenameFilter implements FilenameFilter {
public boolean accept(final File file, final String filename) { return (filename.toLowerCase(Locale.getDefault()).endsWith(formatConfiguration.getPreferredFormat().getExtension()) && (!filename.endsWith(".features.json"))) ; } }
public boolean accept(final File file, final String filename) { return filename.toLowerCase(Locale.getDefault()).endsWith(formatConfiguration.getPreferredFormat().getExtension()); } }