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/broker AnonymousFieldsTest.java
Date Fri, 19 Sep 2003 19:07:21 GMT
brj         2003/09/19 12:07:21

  Modified:    src/test/org/apache/ojb/broker AnonymousFieldsTest.java
  Log:
  testcases reworked
  
  Revision  Changes    Path
  1.8       +14 -8     db-ojb/src/test/org/apache/ojb/broker/AnonymousFieldsTest.java
  
  Index: AnonymousFieldsTest.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/AnonymousFieldsTest.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- AnonymousFieldsTest.java	19 Sep 2003 15:20:35 -0000	1.7
  +++ AnonymousFieldsTest.java	19 Sep 2003 19:07:21 -0000	1.8
  @@ -65,9 +65,10 @@
   		ObjectRepository.F entry = new ObjectRepository.F();
   		entry.setSomeSuperValue(31415926);
   		entry.setSomeValue(123456);
  -		Identity oid = new Identity(entry, broker);
   		broker.store(entry);
   
  +        Identity oid = new Identity(entry, broker);
  +        
   		// clear cache and retrieve a copy from the DB
   		broker.clearCache();
   		ObjectRepository.F copy = (ObjectRepository.F) broker.getObjectByIdentity(oid);
  @@ -88,9 +89,10 @@
           entry.setSomeSuperValue(31415926);
           entry.setSomeValue(123456);
           entry.setSomeSubValue(4242);
  -        Identity oid = new Identity(entry, broker);
           broker.store(entry);
   
  +        Identity oid = new Identity(entry, broker);
  +
           // clear cache and retrieve a copy from the DB
           broker.clearCache();
           ObjectRepository.G copy = (ObjectRepository.G) broker.getObjectByIdentity(oid);
  @@ -105,15 +107,16 @@
        * write an entry using vertical inheritance and try to read it again.
        * E-F1-G1, autoincrement id in E
        */
  -    public void _failing_testVerticalInheritanceStoreAndLoad3() throws Exception
  +    public void _fails_testVerticalInheritanceStoreAndLoad3() throws Exception
       {
           // produce some test data G1
           ObjectRepository.G1 entry = new ObjectRepository.G1();
           entry.setSomeSuperValue(31415926);
           entry.setSomeValue(123456);
           entry.setSomeSubValue(4242);
  -        Identity oid = new Identity(entry, broker);
           broker.store(entry);
  +        
  +        Identity oid = new Identity(entry, broker);
   
           // clear cache and retrieve a copy from the DB
           broker.clearCache();
  @@ -135,9 +138,10 @@
   		ObjectRepository.F entry = new ObjectRepository.F();
   		entry.setSomeSuperValue(2718281);
   		entry.setSomeValue(9999);
  -		Identity oid = new Identity(entry, broker);
   		broker.store(entry);
   
  +        Identity oid = new Identity(entry, broker);
  +        
   		entry.setSomeSuperValue(2718282);
   		entry.setSomeValue(10000);
   		broker.store(entry);
  @@ -162,9 +166,10 @@
           entry.setSomeSuperValue(2718281);
           entry.setSomeValue(9999);
           entry.setSomeSubValue(8888);
  -        Identity oid = new Identity(entry, broker);
           broker.store(entry);
   
  +        Identity oid = new Identity(entry, broker);
  +        
           entry.setSomeSuperValue(2718282);
           entry.setSomeValue(10000);
           entry.setSomeSubValue(7777);
  @@ -184,15 +189,16 @@
        * write an entry using vertical inheritance and try to read it again.
        * E-F1-G1, autoincrement id in E
        */
  -    public void _failing_testVerticalInheritanceUpdate3() throws Exception
  +    public void _fails_testVerticalInheritanceUpdate3() throws Exception
       {
           // produce some test data
           ObjectRepository.G1 entry = new ObjectRepository.G1();
           entry.setSomeSuperValue(2718281);
           entry.setSomeValue(9999);
           entry.setSomeSubValue(8888);
  -        Identity oid = new Identity(entry, broker);
           broker.store(entry);
  +
  +        Identity oid = new Identity(entry, broker);
   
           entry.setSomeSuperValue(2718282);
           entry.setSomeValue(10000);
  
  
  

---------------------------------------------------------------------
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