implement createChecker for real, most tests are running now

This commit is contained in:
Lars Kühne 2002-12-01 09:02:58 +00:00
parent 0fb155232f
commit 8bb244d50b
1 changed files with 9 additions and 8 deletions

View File

@ -41,16 +41,17 @@ public abstract class BaseCheckTestCase
return checkConfig;
}
protected Checker createChecker(Configuration aConfig)
protected Checker createChecker(Configuration aCheckConfig)
throws Exception
{
throw new IllegalStateException("not implemented yet");
// final DefaultConfiguration dc = new DefaultConfiguration("root");
// dc.addChild(aConfig);
// final Checker c = new Checker();
// c.configure(aConfig);
// c.addListener(new BriefLogger(mStream));
// return c;
final DefaultConfiguration dc = new DefaultConfiguration("root");
final DefaultConfiguration twConf = createCheckConfig(TreeWalker.class);
dc.addChild(twConf);
twConf.addChild(aCheckConfig);
final Checker c = new Checker();
c.configure(dc);
c.addListener(new BriefLogger(mStream));
return c;
}
protected static String getPath(String aFilename)