KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sourceforge > ejtools > management > test > ReportTestCase


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 /**
10  * @author letiembl
11  *
12  * To change this generated comment edit the template variable "typecomment":
13  * Window>Preferences>Java>Templates.
14  * To enable and disable the creation of type comments go to
15  * Window>Preferences>Java>Code Generation.
16  */

17 public class ReportTestCase extends JFuncTestCase
18 {
19    /** Description of the Field */
20    private static Category logger = Category.getInstance(ReportTestCase.class);
21
22     /**
23      * Constructor for CustomTestCase.
24      */

25     public ReportTestCase()
26     {
27         super();
28     }
29
30     /**
31      * Constructor for CustomTestCase.
32      * @param arg0
33      */

34     public ReportTestCase(String JavaDoc name)
35     {
36         super(name);
37     }
38
39     
40     public void addInfo(String JavaDoc key, String JavaDoc 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