@Test public void shouldParseCommaSeparatedListOfOutputFormatsWhenSupplied() { final ReportOptions actual = parseAddingRequiredArgs("--outputFormats", "HTML,CSV"); assertEquals(new HashSet<String>(Arrays.asList("HTML", "CSV")), actual.getOutputFormats()); }
@Test public void shouldDefaultToHtmlReportWhenNoOutputFormatsSpecified() { final ReportOptions actual = parseAddingRequiredArgs(); assertEquals(new HashSet<String>(Arrays.asList("HTML")), actual.getOutputFormats()); }