For a source file, and all its statements, I want to know which tests covered which lines. I was not able to collect this information in the XML file. Now I am trying to read from the clover database. Any help will be appreciated. So far I have this:
CloverDatabase db = CloverDatabase.loadWithCoverage("joda_time/target/clover/clover.db", new CoverageDataSpec());
CoverageData cd= db.getCoverageData();
Map<TestCaseInfo, BitSet> map = cd.mapTestsAndCoverageForFile((FullFileInfo) fileInfo);
But I dont know how to create instace of FullFileInfo