Update TestClearableScheduler to use a Vector for multithreaded test rather than an ArrayList

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@957938 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Richard G. Curtis 2010-06-25 13:32:06 +00:00
parent 8781af1e88
commit 20f2966ea1
1 changed files with 2 additions and 2 deletions

View File

@ -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.ConcurrentDataCache;
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 extends SingleEMFTestCase {
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());