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