@Test public void shouldParseHistoryOutputLocation() { final ReportOptions actual = parseAddingRequiredArgs("--historyOutputLocation", "foo"); assertEquals(new File("foo"), actual.getHistoryOutputLocation()); }
@Test public void shouldDefaultToNoHistory() { final ReportOptions actual = parseAddingRequiredArgs(""); assertNull(actual.getHistoryInputLocation()); assertNull(actual.getHistoryOutputLocation()); }