1 package net.sourceforge.ejtools.management.test; 2 3 import junit.extensions.jfunc.JFuncTestCase; 4 import junit.framework.Test; 5 import junit.framework.TestResult; 6 7 import org.apache.log4j.Category; 8 9 17 public class ReportTestCase extends JFuncTestCase 18 { 19 20 private static Category logger = Category.getInstance(ReportTestCase.class); 21 22 25 public ReportTestCase() 26 { 27 super(); 28 } 29 30 34 public ReportTestCase(String name) 35 { 36 super(name); 37 } 38 39 40 public void addInfo(String key, String value) { 41 TestResult result = getResult(); 42 Test test = getTest(); 43 if (result instanceof ReportTestResult) { 44 ((ReportTestResult) result).addInfo(test, key, value); 45 } 46 } 47 } 48 | Popular Tags |