[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/eviction ...
Manik Surtani
msurtani at jboss.com
Thu Jul 20 06:54:00 EDT 2006
User: msurtani
Date: 06/07/20 06:54:00
Modified: tests/functional/org/jboss/cache/eviction
ElementSizePolicyTest.java FIFOPolicyTest.java
Log:
Fixed some broken UTs to use the new xml parsers, cache factories, etc.
Revision Changes Path
1.2 +3 -3 JBossCache/tests/functional/org/jboss/cache/eviction/ElementSizePolicyTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ElementSizePolicyTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/eviction/ElementSizePolicyTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- ElementSizePolicyTest.java 7 May 2006 03:34:39 -0000 1.1
+++ ElementSizePolicyTest.java 20 Jul 2006 10:54:00 -0000 1.2
@@ -49,8 +49,8 @@
cache = new TreeCache();
PropertyConfigurator config = new PropertyConfigurator();
config.configure(cache, "META-INF/local-elementsize-eviction-service.xml"); // read in generic local xml
- cache.setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
- cache.setIsolationLevel(IsolationLevel.SERIALIZABLE);
+ cache.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
+ cache.getConfiguration().setIsolationLevel(IsolationLevel.SERIALIZABLE);
cache.startService();
}
@@ -189,7 +189,7 @@
public void testConcurrentPutAndEvict() throws Exception
{
- cache.setIsolationLevel(IsolationLevel.REPEATABLE_READ);
+ cache.getConfiguration().setIsolationLevel(IsolationLevel.REPEATABLE_READ);
cache.put(ROOT_STR + "/concurrentPutAndEvict", "value", new Integer(1));
for (int i = 0; i < 10; i++)
1.4 +4 -4 JBossCache/tests/functional/org/jboss/cache/eviction/FIFOPolicyTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: FIFOPolicyTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/eviction/FIFOPolicyTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- FIFOPolicyTest.java 5 May 2006 12:06:57 -0000 1.3
+++ FIFOPolicyTest.java 20 Jul 2006 10:54:00 -0000 1.4
@@ -17,7 +17,7 @@
* Unit tests for FIFOPolicy.
*
* @author Daniel Huang (dhuang at jboss.org)
- * @version $Revision: 1.3 $
+ * @version $Revision: 1.4 $
*/
public class FIFOPolicyTest extends TestCase
{
@@ -51,8 +51,8 @@
cache = new TreeCache();
PropertyConfigurator config = new PropertyConfigurator();
config.configure(cache, "META-INF/local-fifo-eviction-service.xml"); // read in generic local xml
- cache.setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
- cache.setIsolationLevel(IsolationLevel.SERIALIZABLE);
+ cache.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
+ cache.getConfiguration().setIsolationLevel(IsolationLevel.SERIALIZABLE);
cache.startService();
}
@@ -302,7 +302,7 @@
public void testConcurrentPutAndEvict() throws Exception
{
- cache.setIsolationLevel(IsolationLevel.REPEATABLE_READ);
+ cache.getConfiguration().setIsolationLevel(IsolationLevel.REPEATABLE_READ);
cache.put(ROOT_STR + "/concurrentPutAndEvict", "value", new Integer(1));
for (int i = 0; i < 10; i++)
More information about the jboss-cvs-commits
mailing list