User: vharcq  
  Date: 02/02/25 09:39:58

  Added:       core/test/src/xdoclet/retest/test
                        BMPEntityBeanRegressionTestCase.java
                        CMPEntityBeanRegresionTestCase.java
                        EnterpriseJavaSeanRegressionTestCase.java
                        EntityBeanRegressionTestCase.java
                        SessionBeanRegressionTestCase.java
                        StatefulSessionBeanRegressionTestCase.java
                        StatelessSessionBeanRegressionTestCase.java
  Log:
  Base TestCase (JUnit) classes for regression testing on all EJB beans (entity, 
session, ...)
  
  Revision  Changes    Path
  1.1                  
xdoclet/core/test/src/xdoclet/retest/test/BMPEntityBeanRegressionTestCase.java
  
  Index: BMPEntityBeanRegressionTestCase.java
  ===================================================================
  /*
   * $Id: BMPEntityBeanRegressionTestCase.java,v 1.1 2002/02/25 17:39:58 vharcq Exp $
   */
  package xdoclet.retest.test;
  
  import xdoclet.retest.util.ClassComparator;
  import xdoclet.retest.util.ComparisonResultSet;
  
  public class BMPEntityBeanRegressionTestCase
          extends EntityBeanRegressionTestCase
  {
      protected String getClassName(){
          return null;
      }
  
      public BMPEntityBeanRegressionTestCase(String name) {
          super(name);
      }
  
      public void testImpl()
      throws Exception{
          ClassComparator comparator;
          ComparisonResultSet res;
          Class ref = Class.forName(refBase+ ".ejb." + getClassName() + "BMP");
          Class gen = Class.forName(genBase+ ".ejb." + getClassName() + "BMP");
          comparator = new ClassComparator(ref,gen);
          res = comparator.compare();
          if (res.error()) System.out.println(res.toString());
          assert("Home Interface comparison failed", ! res.error());
      }
  
  
  }
  
  
  
  1.1                  
xdoclet/core/test/src/xdoclet/retest/test/CMPEntityBeanRegresionTestCase.java
  
  Index: CMPEntityBeanRegresionTestCase.java
  ===================================================================
  /*
   * $Id: CMPEntityBeanRegresionTestCase.java,v 1.1 2002/02/25 17:39:58 vharcq Exp $
   */
  package xdoclet.retest.test;
  
  import xdoclet.retest.util.ClassComparator;
  import xdoclet.retest.util.ComparisonResultSet;
  
  public class CMPEntityBeanRegresionTestCase
  extends EntityBeanRegressionTestCase{
  
      protected String getClassName(){
          return null;
      }
  
      public CMPEntityBeanRegresionTestCase(String name) {
          super(name);
      }
  
      public void testImpl()
      throws Exception{
          ClassComparator comparator;
          ComparisonResultSet res;
          Class ref = Class.forName(refBase+ ".ejb." + getClassName() + "CMP");
          Class gen = Class.forName(genBase+ ".ejb." + getClassName() + "CMP");
          comparator = new ClassComparator(ref,gen);
          res = comparator.compare();
          if (res.error()) System.out.println(res.toString());
          assert("Home Interface comparison failed", ! res.error());
      }
  
  }
  
  
  
  1.1                  
xdoclet/core/test/src/xdoclet/retest/test/EnterpriseJavaSeanRegressionTestCase.java
  
  Index: EnterpriseJavaSeanRegressionTestCase.java
  ===================================================================
  /*
   * $Id: EnterpriseJavaSeanRegressionTestCase.java,v 1.1 2002/02/25 17:39:58 vharcq 
Exp $
   */
  package xdoclet.retest.test;
  
  import xdoclet.retest.util.ClassComparator;
  import xdoclet.retest.util.ComparisonResultSet;
  import xdoclet.retest.util.InterfaceComparator;
  import junit.framework.TestCase;
  
  public class EnterpriseJavaSeanRegressionTestCase
  extends TestCase{
  
      protected String refBase = "xdoclet.retest.ref.ejb";
      protected String genBase = "xdoclet.retest.bean.ejb";
  
      protected String getClassName(){
          return null;
      }
  
      public EnterpriseJavaSeanRegressionTestCase(String name) {
          super(name);
      }
  
      public void testHome()
      throws Exception{
          InterfaceComparator comparator;
          ComparisonResultSet res;
          Class ref = Class.forName(refBase+ ".interfaces." + getClassName() + "Home");
          Class gen = Class.forName(genBase+ ".interfaces." + getClassName() + "Home");
          comparator = new InterfaceComparator(ref,gen);
          res = comparator.compare();
          if (res.error()) System.out.println(res.toString());
          assert("Home Interface comparison failed", ! res.error());
      }
  
      public void testLocalHome()
      throws Exception{
          InterfaceComparator comparator;
          ComparisonResultSet res;
          Class ref = Class.forName(refBase+ ".interfaces." + getClassName() + 
"LocalHome");
          Class gen = Class.forName(genBase+ ".interfaces." + getClassName() + 
"LocalHome");
          comparator = new InterfaceComparator(ref,gen);
          res = comparator.compare();
          if (res.error()) System.out.println(res.toString());
          assert("Home Interface comparison failed", ! res.error());
      }
  
      public void testRemote()
      throws Exception{
          InterfaceComparator comparator;
          ComparisonResultSet res;
          Class ref = Class.forName(refBase+ ".interfaces." + getClassName() );
          Class gen = Class.forName(genBase+ ".interfaces." + getClassName());
          comparator = new InterfaceComparator(ref,gen);
          res = comparator.compare();
          if (res.error()) System.out.println(res.toString());
          assert("Remote Interface comparison failed", ! res.error());
      }
  
      public void testLocal()
      throws Exception{
          InterfaceComparator comparator;
          ComparisonResultSet res;
          Class ref = Class.forName(refBase+ ".interfaces." + getClassName() + 
"Local");
          Class gen = Class.forName(genBase+ ".interfaces." + getClassName() + 
"Local");
          comparator = new InterfaceComparator(ref,gen);
          res = comparator.compare();
          if (res.error()) System.out.println(res.toString());
          assert("Home Interface comparison failed", ! res.error());
      }
  
      /**
       * @todo
       */
      public void testEjbJarXml()
      throws Exception{
          // . . .
      }
  
  }
  
  
  
  1.1                  
xdoclet/core/test/src/xdoclet/retest/test/EntityBeanRegressionTestCase.java
  
  Index: EntityBeanRegressionTestCase.java
  ===================================================================
  /*
   * $Id: EntityBeanRegressionTestCase.java,v 1.1 2002/02/25 17:39:58 vharcq Exp $
   */
  package xdoclet.retest.test;
  
  public class EntityBeanRegressionTestCase
  extends EnterpriseJavaSeanRegressionTestCase{
      protected String getClassName(){
          return null;
      }
  
      public EntityBeanRegressionTestCase(String name) {
          super(name);
      }
  
  }
  
  
  
  1.1                  
xdoclet/core/test/src/xdoclet/retest/test/SessionBeanRegressionTestCase.java
  
  Index: SessionBeanRegressionTestCase.java
  ===================================================================
  /*
   * $Id: SessionBeanRegressionTestCase.java,v 1.1 2002/02/25 17:39:58 vharcq Exp $
   */
  package xdoclet.retest.test;
  
  import xdoclet.retest.util.ClassComparator;
  import xdoclet.retest.util.ComparisonResultSet;
  
  public class SessionBeanRegressionTestCase
          extends EnterpriseJavaSeanRegressionTestCase
  {
      protected String getClassName(){
          return null;
      }
  
      public SessionBeanRegressionTestCase(String name) {
          super(name);
      }
  
      public void testImpl()
      throws Exception{
          ClassComparator comparator;
          ComparisonResultSet res;
          Class ref = Class.forName(refBase+ ".ejb." + getClassName() + "Session");
          Class gen = Class.forName(genBase+ ".ejb." + getClassName() + "Session");
          comparator = new ClassComparator(ref,gen);
          res = comparator.compare();
          if (res.error()) System.out.println(res.toString());
          assert("Home Interface comparison failed", ! res.error());
      }
  
  }
  
  
  
  1.1                  
xdoclet/core/test/src/xdoclet/retest/test/StatefulSessionBeanRegressionTestCase.java
  
  Index: StatefulSessionBeanRegressionTestCase.java
  ===================================================================
  /*
  * $Id: StatefulSessionBeanRegressionTestCase.java,v 1.1 2002/02/25 17:39:58 vharcq 
Exp $
  */
  package xdoclet.retest.test;
  
  public class StatefulSessionBeanRegressionTestCase extends 
SessionBeanRegressionTestCase
  {
  
      protected String getClassName(){
          return null;
      }
  
      public StatefulSessionBeanRegressionTestCase(String name) {
          super(name);
      }
  
  }
  
  
  
  1.1                  
xdoclet/core/test/src/xdoclet/retest/test/StatelessSessionBeanRegressionTestCase.java
  
  Index: StatelessSessionBeanRegressionTestCase.java
  ===================================================================
  /*
   * $Id: StatelessSessionBeanRegressionTestCase.java,v 1.1 2002/02/25 17:39:58 vharcq 
Exp $
   */
  package xdoclet.retest.test;
  
  import junit.textui.TestRunner;
  import junit.framework.Test;
  import junit.framework.TestSuite;
  import junit.framework.TestCase;
  import xdoclet.retest.util.ClassComparator;
  import xdoclet.retest.util.ComparisonResultSet;
  
  public class StatelessSessionBeanRegressionTestCase
          extends SessionBeanRegressionTestCase
  {
  
      protected String getClassName(){
          return null;
      }
  
      public StatelessSessionBeanRegressionTestCase(String name) {
          super(name);
      }
  
  }
  
  
  

_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to