db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r463967 - /db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/cache/ObjectCacheTest.java
Date Sat, 14 Oct 2006 16:09:47 GMT
Author: arminw
Date: Sat Oct 14 09:09:44 2006
New Revision: 463967

URL: http://svn.apache.org/viewvc?view=rev&rev=463967
Log:
fix test

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/cache/ObjectCacheTest.java

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/cache/ObjectCacheTest.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/cache/ObjectCacheTest.java?view=diff&rev=463967&r1=463966&r2=463967
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/cache/ObjectCacheTest.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/cache/ObjectCacheTest.java
Sat Oct 14 09:09:44 2006
@@ -185,7 +185,6 @@
      */
     public void testCacheFilterFunctions() throws Exception
     {
-        PersistenceBrokerFactory.releaseAllInstances();
         String old = null;
         try
         {
@@ -196,9 +195,10 @@
                 ojbSkipTestMessage("Doesn't work with " + ObjectCacheEmptyImpl.class + "
as default cache.");
                 return;
             }
-            old = jcd.getAttribute(CacheDistributor.CACHE_EXCLUDES_STRING);
-            jcd.addAttribute(CacheDistributor.CACHE_EXCLUDES_STRING, "org.apache.ojb.broker.sequence");
+            old = jcd.getObjectCacheDescriptor().getAttribute(CacheDistributor.CACHE_EXCLUDES_STRING);
+            jcd.getObjectCacheDescriptor().addAttribute(CacheDistributor.CACHE_EXCLUDES_STRING,
"org.apache.ojb.broker.sequence");
 
+            PersistenceBrokerFactory.releaseAllInstances();
             PersistenceBroker broker = PersistenceBrokerFactory.defaultPersistenceBroker();
             try
             {
@@ -231,7 +231,7 @@
             }
             finally
             {
-                if(old != null) jcd.addAttribute(CacheDistributor.CACHE_EXCLUDES_STRING,
old);
+                if(old != null) jcd.getObjectCacheDescriptor().addAttribute(CacheDistributor.CACHE_EXCLUDES_STRING,
old);
                 if (broker != null) broker.close();
             }
         }



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