openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From curti...@apache.org
Subject svn commit: r957938 - /openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestClearableScheduler.java
Date Fri, 25 Jun 2010 13:32:07 GMT
Author: curtisr7
Date: Fri Jun 25 13:32:06 2010
New Revision: 957938

URL: http://svn.apache.org/viewvc?rev=957938&view=rev
Log:
Update TestClearableScheduler to use a Vector for multithreaded test rather than an ArrayList

Modified:
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestClearableScheduler.java

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestClearableScheduler.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestClearableScheduler.java?rev=957938&r1=957937&r2=957938&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestClearableScheduler.java
(original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestClearableScheduler.java
Fri Jun 25 13:32:06 2010
@@ -22,6 +22,7 @@ import java.util.ArrayList;
 import java.util.Calendar;
 import java.util.Date;
 import java.util.List;
+import java.util.Vector;
 
 import org.apache.openjpa.conf.OpenJPAConfiguration;
 import org.apache.openjpa.datacache.ClearableScheduler;
@@ -29,7 +30,6 @@ import org.apache.openjpa.datacache.Conc
 import org.apache.openjpa.datacache.DataCacheManager;
 import org.apache.openjpa.persistence.OpenJPAEntityManagerSPI;
 import org.apache.openjpa.persistence.datacache.common.apps.ScheduledEviction;
-import org.apache.openjpa.persistence.test.AllowFailure;
 import org.apache.openjpa.persistence.test.SingleEMFTestCase;
 
 public class TestClearableScheduler extends SingleEMFTestCase {
@@ -93,7 +93,7 @@ public class TestClearableScheduler exte
     
     public void testMultithreadedInitialization() throws Exception {
         final OpenJPAConfiguration conf =  emf.getConfiguration();
-        final List<DataCacheManager> dcms = new ArrayList<DataCacheManager>();
+        final List<DataCacheManager> dcms = new Vector<DataCacheManager>();
         Runnable r = new Runnable(){
             public void run() {
                 dcms.add(conf.getDataCacheManagerInstance());



Mime
View raw message