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 MultipleDBTest.java
Date Mon, 07 Apr 2003 16:01:44 GMT
arminw      2003/04/07 09:01:44

  Modified:    src/test/org/apache/ojb/broker MultipleDBTest.java
  Log:
  add missing PB close methods
  
  Revision  Changes    Path
  1.9       +6 -0      db-ojb/src/test/org/apache/ojb/broker/MultipleDBTest.java
  
  Index: MultipleDBTest.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/MultipleDBTest.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- MultipleDBTest.java	1 Apr 2003 14:06:11 -0000	1.8
  +++ MultipleDBTest.java	7 Apr 2003 16:01:44 -0000	1.9
  @@ -111,6 +111,7 @@
           FarAwayClass fa2 = (FarAwayClass) secPB.getObjectByIdentity(oid);
           Assert.assertNotNull("Lookup for article in second DB failed", fa2);
           Assert.assertEquals(fa.toString(), fa2.toString());
  +        secPB.close();
   
           defPB = PersistenceBrokerFactory.defaultPersistenceBroker();
           defPB.clearCache();
  @@ -118,6 +119,7 @@
           Identity oid2 = new Identity(PerformanceArticle.class, pks2);
           PerformanceArticle article2 = (PerformanceArticle) defPB.getObjectByIdentity(oid2);
           Assert.assertNotNull("Lookup for article in default DB failed", article2);
  +        defPB.close();
   
           secPB = PersistenceBrokerFactory.createPersistenceBroker(secKey);
           secPB.beginTransaction();
  @@ -162,6 +164,7 @@
           FarAwayClass fa2 = (FarAwayClass) farAwayPB.getObjectByIdentity(oid);
           Assert.assertNotNull("Lookup for article in second DB failed", fa2);
           Assert.assertEquals(fa.toString(), fa2.toString());
  +        farAwayPB.close();
   
           defaultPB = PersistenceBrokerFactory.defaultPersistenceBroker();
           defaultPB.clearCache();
  @@ -169,6 +172,7 @@
           Identity oid2 = new Identity(PerformanceArticle.class, pks2);
           PerformanceArticle article2 = (PerformanceArticle) defaultPB.getObjectByIdentity(oid2);
           Assert.assertNotNull("Lookup for article in default DB failed", article2);
  +        defaultPB.close();
   
           farAwayPB = PersistenceBrokerFactory.createPersistenceBroker(secKey);
           farAwayPB.clearCache();
  @@ -212,12 +216,14 @@
           FarAwayClass fa2 = (FarAwayClass) farAwayPB.getObjectByIdentity(oid);
           Assert.assertNotNull("Lookup for article in second DB failed", fa2);
           Assert.assertEquals(fa.toString(), fa2.toString());
  +        farAwayPB.close();
   
           defaultPB = PersistenceBrokerFactory.defaultPersistenceBroker();
           Object[] pks2 = {new Integer(article.getArticleId())};
           Identity oid2 = new Identity(PerformanceArticle.class, pks2);
           PerformanceArticle article2 = (PerformanceArticle) defaultPB.getObjectByIdentity(oid2);
           Assert.assertNotNull("Lookup for article in default DB failed", article2);
  +        defaultPB.close();
   
           farAwayPB = PersistenceBrokerFactory.createPersistenceBroker(secKey);
           farAwayPB.beginTransaction();
  
  
  

Mime
View raw message