srcDir } );
}
@Test
public void testParseArgs() throws Exception {
Main m = new Main();
m.parseArguments(new String[] { "--datafile", "a", "--destination",
"b", "--encoding", "c", "f", "g" });
assertEquals(m.support.getCoverageDataFile().getName(), "a");
assertEquals(m.support.getDestinationDir().getName(), "b");
assertEquals(m.support.getEncoding(), "c");
assertEquals(m.support.getFinder().getSourceDirectoryList().size(), 2);
m = new Main();
try {
m.parseArguments(new String[] {});
fail();
} catch (Exception e) {
assertTrue(e.getMessage().indexOf("destination") > -1);
}
assertNotNull(m.support.getCoverageDataFile());