Author: bstansberry(a)jboss.com
Date: 2008-02-07 15:19:51 -0500 (Thu, 07 Feb 2008)
New Revision: 5329
Modified:
core/trunk/src/test/java/org/jboss/cache/eviction/minttl/MinTTLTestBase.java
core/trunk/src/test/java/org/jboss/cache/invalidation/TombstoneEvictionTest.java
Log:
Don't use an immutable list
Modified: core/trunk/src/test/java/org/jboss/cache/eviction/minttl/MinTTLTestBase.java
===================================================================
---
core/trunk/src/test/java/org/jboss/cache/eviction/minttl/MinTTLTestBase.java 2008-02-07
19:16:39 UTC (rev 5328)
+++
core/trunk/src/test/java/org/jboss/cache/eviction/minttl/MinTTLTestBase.java 2008-02-07
20:19:51 UTC (rev 5329)
@@ -11,6 +11,7 @@
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
+import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.CountDownLatch;
@@ -49,7 +50,8 @@
regionCfg.setEvictionPolicyConfig(cfg);
// set regions in a list
- List<EvictionRegionConfig> evictionRegionConfigs =
Collections.singletonList(regionCfg);
+ List<EvictionRegionConfig> evictionRegionConfigs = new
ArrayList<EvictionRegionConfig>();
+ evictionRegionConfigs.add(regionCfg);
// cache-wide
EvictionConfig ec = new EvictionConfig();
Modified:
core/trunk/src/test/java/org/jboss/cache/invalidation/TombstoneEvictionTest.java
===================================================================
---
core/trunk/src/test/java/org/jboss/cache/invalidation/TombstoneEvictionTest.java 2008-02-07
19:16:39 UTC (rev 5328)
+++
core/trunk/src/test/java/org/jboss/cache/invalidation/TombstoneEvictionTest.java 2008-02-07
20:19:51 UTC (rev 5329)
@@ -13,6 +13,7 @@
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
+import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
@@ -47,7 +48,8 @@
regionCfg.setEvictionPolicyConfig(cfg);
// set regions in a list
- List<EvictionRegionConfig> evictionRegionConfigs =
Collections.singletonList(regionCfg);
+ List<EvictionRegionConfig> evictionRegionConfigs = new
ArrayList<EvictionRegionConfig>();
+ evictionRegionConfigs.add(regionCfg);
EvictionConfig ec = new EvictionConfig();
Show replies by date