db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: db-ojb/src/test/org/apache/ojb repository_junit.xml
Date Wed, 02 Feb 2005 19:52:03 GMT
brj         2005/02/02 11:52:03

  Modified:    src/test/org/apache/ojb/broker Tag: OJB_1_0_RELEASE
                        AllTests.java
               src/test/org/apache/ojb Tag: OJB_1_0_RELEASE
                        repository_junit.xml
  Added:       src/test/org/apache/ojb/broker Tag: OJB_1_0_RELEASE
                        FieldTypeTest.java
  Log:
  testcase for field having different type in the extents
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.49.2.3  +1 -0      db-ojb/src/test/org/apache/ojb/broker/AllTests.java
  
  Index: AllTests.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/AllTests.java,v
  retrieving revision 1.49.2.2
  retrieving revision 1.49.2.3
  diff -u -r1.49.2.2 -r1.49.2.3
  --- AllTests.java	4 Dec 2004 13:51:32 -0000	1.49.2.2
  +++ AllTests.java	2 Feb 2005 19:52:03 -0000	1.49.2.3
  @@ -76,6 +76,7 @@
           suite.addTestSuite(FieldConversionTest.class);
           suite.addTestSuite(FieldConversionTest_2.class);
           suite.addTestSuite(FieldConversionTest_3.class);
  +        suite.addTestSuite(FieldTypeTest.class);
           suite.addTestSuite(BatchModeTest.class);
           suite.addTestSuite(ObjectCacheTest.class);
           suite.addTestSuite(LocalCacheTest.class);
  
  
  
  No                   revision
  
  Index: AllTests.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/AllTests.java,v
  retrieving revision 1.49.2.2
  retrieving revision 1.49.2.3
  diff -u -r1.49.2.2 -r1.49.2.3
  --- AllTests.java	4 Dec 2004 13:51:32 -0000	1.49.2.2
  +++ AllTests.java	2 Feb 2005 19:52:03 -0000	1.49.2.3
  @@ -76,6 +76,7 @@
           suite.addTestSuite(FieldConversionTest.class);
           suite.addTestSuite(FieldConversionTest_2.class);
           suite.addTestSuite(FieldConversionTest_3.class);
  +        suite.addTestSuite(FieldTypeTest.class);
           suite.addTestSuite(BatchModeTest.class);
           suite.addTestSuite(ObjectCacheTest.class);
           suite.addTestSuite(LocalCacheTest.class);
  
  
  
  No                   revision
  
  Index: AllTests.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/AllTests.java,v
  retrieving revision 1.49.2.2
  retrieving revision 1.49.2.3
  diff -u -r1.49.2.2 -r1.49.2.3
  --- AllTests.java	4 Dec 2004 13:51:32 -0000	1.49.2.2
  +++ AllTests.java	2 Feb 2005 19:52:03 -0000	1.49.2.3
  @@ -76,6 +76,7 @@
           suite.addTestSuite(FieldConversionTest.class);
           suite.addTestSuite(FieldConversionTest_2.class);
           suite.addTestSuite(FieldConversionTest_3.class);
  +        suite.addTestSuite(FieldTypeTest.class);
           suite.addTestSuite(BatchModeTest.class);
           suite.addTestSuite(ObjectCacheTest.class);
           suite.addTestSuite(LocalCacheTest.class);
  
  
  
  1.1.2.1   +202 -0    db-ojb/src/test/org/apache/ojb/broker/Attic/FieldTypeTest.java
  
  
  
  
  No                   revision
  No                   revision
  1.112.2.9 +69 -5     db-ojb/src/test/org/apache/ojb/repository_junit.xml
  
  Index: repository_junit.xml
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/repository_junit.xml,v
  retrieving revision 1.112.2.8
  retrieving revision 1.112.2.9
  diff -u -r1.112.2.8 -r1.112.2.9
  --- repository_junit.xml	19 Dec 2004 02:23:35 -0000	1.112.2.8
  +++ repository_junit.xml	2 Feb 2005 19:52:03 -0000	1.112.2.9
  @@ -2670,10 +2670,6 @@
   	   <field-descriptor name="name" column="NAME" jdbc-type="VARCHAR"/>
   	</class-descriptor>
   
  -
  -
  -
  -
       <!-- ************************************************* -->
       <!--      nested fields test                           -->
       <!-- ************************************************* -->
  @@ -2741,4 +2737,72 @@
           />
       </class-descriptor>
   
  +    <!-- ************************************************* -->
  +    <!-- Class to Test Field type            			   -->
  +    <!-- typ of price is differnt      			           -->
  +    <!-- ************************************************* -->
  +   <class-descriptor
  +   	  class="org.apache.ojb.broker.FieldTypeTest$AbstractArticle"
  +   >
  +      <extent-class class-ref="org.apache.ojb.broker.FieldTypeTest$Article" />
  +      <extent-class class-ref="org.apache.ojb.broker.FieldTypeTest$BookArticle" />
  +   </class-descriptor>
  +
  +   <class-descriptor
  +   	  class="org.apache.ojb.broker.FieldTypeTest$Article"
  +   	  table="Artikel"
  +   >
  +      <field-descriptor
  +         name="articleId"
  +         column="Artikel_Nr"
  +         jdbc-type="INTEGER"
  +         primarykey="true"
  +         autoincrement="true"
  +      />
  +      <field-descriptor
  +         name="articleName"
  +         column="Artikelname"
  +         jdbc-type="VARCHAR"
  +      />
  +      <field-descriptor
  +         name="price"
  +         column="Einzelpreis"
  +         jdbc-type="FLOAT"
  +      />
  +   </class-descriptor>
  +
  +   <class-descriptor
  +   	  class="org.apache.ojb.broker.FieldTypeTest$BookArticle"
  +   	  table="Books"
  +   >
  +      <field-descriptor
  +         name="articleId"
  +         column="Artikel_Nr"
  +         jdbc-type="INTEGER"
  +         primarykey="true"
  +         autoincrement="true"
  +      />
  +      <field-descriptor
  +         name="articleName"
  +         column="Artikelname"
  +         jdbc-type="VARCHAR"
  +      />
  +      <field-descriptor
  +         name="price"
  +         column="Einzelpreis"
  +         jdbc-type="FLOAT"
  +         conversion="org.apache.ojb.broker.FieldTypeTest$DoubleToStringConversion"
  +      />
  +      <field-descriptor
  +         name="isbn"
  +         column="ISBN"
  +         jdbc-type="VARCHAR"
  +      />
  +      <field-descriptor
  +         name="author"
  +         column="AUTHOR"
  +         jdbc-type="VARCHAR"
  +      />
  +   </class-descriptor>
  +
   <!-- Mapping of classes used in junit tests and tutorials ends here -->
  \ No newline at end of file
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message