1 package net.firstpartners.nounit.report; 2 3 26 27 import java.io.File ; 28 import java.io.FileNotFoundException ; 29 import java.io.IOException ; 30 31 import javax.xml.transform.TransformerConfigurationException ; 32 import javax.xml.transform.TransformerException ; 33 34 import net.firstpartners.nounit.report.process.CallChainer; 35 import net.firstpartners.nounit.ui.common.CommandPackage; 36 import net.firstpartners.nounit.ui.common.SystemValues; 37 import net.firstpartners.nounit.utility.NoUnitException; 38 39 import org.jdom.JDOMException; 40 41 50 51 public class CallsReport 52 extends SimpleReport{ 53 54 55 public static final String classMustExtend="junit.framework.TestCase"; 57 58 66 public void makeReport(CommandPackage inPackage) 67 throws TransformerException , TransformerConfigurationException , 68 IOException , FileNotFoundException , NoUnitException { 69 70 File xmlInOutFile= 72 new File ( inPackage.getString(CommandPackage.OUTPUT_DIR), 73 SystemValues.XML_OUTPUT_NAME ); 74 75 try{ CallChainer myProcessor = new CallChainer(); 77 myProcessor.addCallChainInformation( xmlInOutFile, 78 xmlInOutFile, 79 classMustExtend); 80 } catch (JDOMException jde) { 81 throw new NoUnitException( jde, "XML-JDOM Exception" ); 82 } 83 super.makeReport(inPackage); 85 } 86 } 87 | Popular Tags |