private TestOutcomeStream(Path sourceDirectory) throws IOException { this.directoryStream = Files.newDirectoryStream(sourceDirectory); this.directoryStreamIterator = Files.newDirectoryStream(sourceDirectory).iterator(); this.loader = new JSONTestOutcomeReporter(); }
private AcceptanceTestReporter getJsonReporter() { JSONTestOutcomeReporter reporter = new JSONTestOutcomeReporter(); reporter.setOutputDirectory(getOutputDirectory()); return reporter; }
private AcceptanceTestReporter getJsonReporter() { JSONTestOutcomeReporter reporter = new JSONTestOutcomeReporter(); reporter.setOutputDirectory(getOutputDirectory()); return reporter; }
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 {