[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/aop/loader ...
Ben Wang
bwang at jboss.com
Mon Jan 1 22:23:16 EST 2007
User: bwang
Date: 07/01/01 22:23:16
Modified: tests/functional/org/jboss/cache/aop/loader Tag:
Branch_JBossCache_1_4_0 CacheLoaderTestsBase.java
Log:
Resurrect the unit test now that JBCACHE-477 is fixed.
Revision Changes Path
No revision
No revision
1.9.2.1 +6 -13 JBossCache/tests/functional/org/jboss/cache/aop/loader/Attic/CacheLoaderTestsBase.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: CacheLoaderTestsBase.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/aop/loader/Attic/CacheLoaderTestsBase.java,v
retrieving revision 1.9
retrieving revision 1.9.2.1
diff -u -b -r1.9 -r1.9.2.1
--- CacheLoaderTestsBase.java 9 Apr 2006 12:33:49 -0000 1.9
+++ CacheLoaderTestsBase.java 2 Jan 2007 03:23:16 -0000 1.9.2.1
@@ -3,17 +3,21 @@
import junit.framework.Test;
import junit.framework.TestSuite;
import org.jboss.cache.Fqn;
+import org.jboss.cache.transaction.DummyTransactionManager;
import org.jboss.cache.aop.PojoCache;
import org.jboss.cache.aop.test.Person;
import org.jboss.cache.loader.CacheLoader;
import javax.transaction.Transaction;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
/**
* Commons tests for all CacheLoaders. Aop version.
*
* @author bwang
- * @version $Id: CacheLoaderTestsBase.java,v 1.9 2006/04/09 12:33:49 bwang Exp $
+ * @version $Id: CacheLoaderTestsBase.java,v 1.9.2.1 2007/01/02 03:23:16 bwang Exp $
*/
abstract public class CacheLoaderTestsBase extends AbstractCacheLoaderTestBase {
PojoCache cache;
@@ -106,7 +110,6 @@
* cacheloader using pessimistic locking.
*/
public void testTxCollectionRemove() throws Exception {
- /*
Person joe = new Person();
joe.setName("Joe");
joe.setAge(10);
@@ -133,14 +136,10 @@
{
tx.commit();
}
- */
- // do nothing: override the test which fails.
- // see JBCACHE-477
}
public void testCollection() throws Exception
{
- /*
Map map = new HashMap();
map.put("1", "1");
map.put("2", "2");
@@ -155,13 +154,7 @@
map = (Map)cache.getObject("/test/map");
assertEquals("Map 1", "1", map.get("1"));
assertEquals("Map 2", "2", map.get("2"));
-// assertEquals("Map 3", "3", map.get("3"));
- assertEquals("Known Failure - see JBCACHE-479 - Map size is not correct now. This is a known bug because of cacheloader does not load children that should be fixed in 1.3. ", 3, map.size());
- */
-
- // do nothing; override the test which fails.
- // See JBCACHE-479
-
+ assertEquals("Map 3", "3", map.get("3"));
}
public static Test suite() {
More information about the jboss-cvs-commits
mailing list