1 package net.sf.statsvn.input; 2 3 import java.io.IOException; 4 5 import junit.framework.TestCase; 6 import net.sf.statcvs.input.LogSyntaxException; 7 import net.sf.statcvs.output.ConfigurationException; 8 import net.sf.statcvs.output.ConfigurationOptions; 9 import net.sf.statsvn.Main; 10 import net.sf.statsvn.output.SvnCommandLineParser; 11 12 /** 13 * High-level scenarios to verify parsing without actually needing a server. 14 * 15 * @author jkealey 16 * 17 */ 18 public class SvnLogfileParserTest extends TestCase { 19 20 protected final static String sRoot = "./tests-src/net/sf/statsvn/input/samplefiles/"; 21 22 protected RepositoryFileManager repFileMan; 23 24 public void testJUCMNav1() throws ConfigurationException, IOException, LogSyntaxException { 25 final String[] args = { "-title", "jUCMNav", "-output-dir", sRoot + "stats", sRoot + "seg.jUCMNav.log", sRoot, "-cache-dir", sRoot }; 26 new SvnCommandLineParser(args).parse(); 27 repFileMan = new DummyRepositoryFileManager(ConfigurationOptions.getCheckedOutDirectory(), sRoot + "seg.jUCMNav.info", sRoot + "seg.jUCMNav.propget", 28 sRoot + "seg.jUCMNav.linecounts"); 29 Main.generateDefaultHTMLSuite(repFileMan); 30 } 31 }