KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > xdoclet > retest > test > BMPEntityBeanRegressionTestCase


1 package xdoclet.retest.test;
2
3 import xdoclet.retest.util.ClassComparator;
4 import xdoclet.retest.util.ComparisonResultSet;
5
6 /**
7  * @author Vincent Harcq (vincent.harcq@hubmethods.com)
8  * @created Mars 5, 2002
9  * @version $Revision: 1.3 $
10  */

11 public class BMPEntityBeanRegressionTestCase
12         extends EntityBeanRegressionTestCase
13 {
14
15     public BMPEntityBeanRegressionTestCase(String JavaDoc name)
16     {
17         super(name);
18     }
19
20     public void testImpl()
21     throws Exception JavaDoc
22     {
23         ClassComparator comparator;
24         ComparisonResultSet res;
25         Class JavaDoc ref = Class.forName(refBase+ ".ejb." + getClassName() + "BMP");
26         Class JavaDoc gen = Class.forName(genBase+ ".ejb." + getClassName() + "BMP");
27         comparator = new ClassComparator(ref,gen);
28         res = comparator.compare();
29         if (res.error()) System.out.println(res.toString());
30         assertTrue("Home Interface comparison failed "+res, ! res.error());
31     }
32
33
34 }
35
Popular Tags