db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/test/org/apache/ojb/broker MultithreadedReadTest.java
Date Thu, 30 Sep 2004 13:52:02 GMT
arminw      2004/09/30 06:52:02

  Modified:    src/test/org/apache/ojb/broker Tag: OJB_1_0_RELEASE
                        MultithreadedReadTest.java
  Log:
  fix test case
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.3.2.2   +10 -2     db-ojb/src/test/org/apache/ojb/broker/MultithreadedReadTest.java
  
  Index: MultithreadedReadTest.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/MultithreadedReadTest.java,v
  retrieving revision 1.3.2.1
  retrieving revision 1.3.2.2
  diff -u -r1.3.2.1 -r1.3.2.2
  --- MultithreadedReadTest.java	28 Sep 2004 14:13:49 -0000	1.3.2.1
  +++ MultithreadedReadTest.java	30 Sep 2004 13:52:02 -0000	1.3.2.2
  @@ -25,7 +25,7 @@
       static final int LINK = ObjectReferenceDescriptor.CASCADE_LINK;
       static final int OBJECT = ObjectReferenceDescriptor.CASCADE_OBJECT;
   
  -    int loops = 1;
  +    int loops = 2;
       int concurrentThreads = 19;
       int numberOfObjects = 30;
   
  @@ -77,7 +77,9 @@
               changeReferenceSetting(broker, BuyerImpl.class, "address", true, OBJECT, OBJECT,
false);
               changeReferenceSetting(broker, BuyerImpl.class, "invoices", true, OBJECT, OBJECT,
false);
               changeReferenceSetting(broker, BuyerImpl.class, "articles", true, OBJECT, OBJECT,
false);
  +            broker.beginTransaction();
               Integer[] ids = prepareTestRead(broker, name, 5);
  +            broker.commitTransaction();
               broker.clearCache();
   
               Criteria crit = new Criteria();
  @@ -124,7 +126,9 @@
                   changeReferenceSetting(broker, BuyerImpl.class, "address", true, OBJECT,
OBJECT, true);
                   changeReferenceSetting(broker, BuyerImpl.class, "invoices", true, OBJECT,
OBJECT, true);
                   changeReferenceSetting(broker, BuyerImpl.class, "articles", true, OBJECT,
OBJECT, false);
  +                broker.beginTransaction();
                   prepareTestRead(broker, searchCriteria, concurrentThreads);
  +                broker.commitTransaction();
                   broker.clearCache();
   
                   Criteria crit = new Criteria();
  @@ -162,7 +166,9 @@
               changeReferenceSetting(broker, BuyerImpl.class, "address", true, OBJECT, OBJECT,
false);
               changeReferenceSetting(broker, BuyerImpl.class, "invoices", true, OBJECT, OBJECT,
false);
               changeReferenceSetting(broker, BuyerImpl.class, "articles", true, OBJECT, OBJECT,
false);
  +            broker.beginTransaction();
               prepareTestRead(broker, searchCriteria, numberOfObjects);
  +            broker.commitTransaction();
               broker.clearCache();
           }
           finally
  @@ -207,7 +213,9 @@
               changeReferenceSetting(broker, BuyerImpl.class, "address", true, OBJECT, OBJECT,
true);
               changeReferenceSetting(broker, BuyerImpl.class, "invoices", true, OBJECT, OBJECT,
true);
               changeReferenceSetting(broker, BuyerImpl.class, "articles", true, OBJECT, OBJECT,
true);
  +            broker.beginTransaction();
               identityList = prepareTestLazyRead(broker, name, concurrentThreads);
  +            broker.commitTransaction();
               broker.clearCache();
           }
           finally
  
  
  

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