[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/loader/deadlock ...
Manik Surtani
msurtani at jboss.com
Thu Jan 11 08:49:21 EST 2007
User: msurtani
Date: 07/01/11 08:49:21
Modified: tests/functional/org/jboss/cache/loader/deadlock
ConcurrentCreationDeadlockTest.java
Log:
Changed CacheImpl ctor to be protected, and changed cache factories accordingly
Revision Changes Path
1.11 +4 -3 JBossCache/tests/functional/org/jboss/cache/loader/deadlock/ConcurrentCreationDeadlockTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ConcurrentCreationDeadlockTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/loader/deadlock/ConcurrentCreationDeadlockTest.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- ConcurrentCreationDeadlockTest.java 10 Jan 2007 15:39:52 -0000 1.10
+++ ConcurrentCreationDeadlockTest.java 11 Jan 2007 13:49:21 -0000 1.11
@@ -4,6 +4,7 @@
import junit.framework.Test;
import junit.framework.TestSuite;
import org.jboss.cache.CacheImpl;
+import org.jboss.cache.DefaultCacheFactory;
import org.jboss.cache.Fqn;
import org.jboss.cache.config.Configuration;
import org.jboss.cache.config.Configuration.CacheMode;
@@ -127,7 +128,7 @@
m_contextFactory = System.getProperty(Context.INITIAL_CONTEXT_FACTORY);
System.setProperty(Context.INITIAL_CONTEXT_FACTORY, CONTEXT_FACTORY);
DummyTransactionManager.getInstance();
- cache = new CacheImpl();
+ cache = (CacheImpl) DefaultCacheFactory.getInstance().createCache(false);
XmlConfigurationParser parser = new XmlConfigurationParser();
Configuration c = UnitTestCacheFactory.createConfiguration(CacheMode.REPL_SYNC);
@@ -398,8 +399,8 @@
* A worker thread that applies the concurrent modifications.
*
* @author Marian Nikolov
- * @author $Author: vblagojevic $
- * @version $Date: 2007/01/10 15:39:52 $
+ * @author $Author: msurtani $
+ * @version $Date: 2007/01/11 13:49:21 $
*/
private class Worker extends Thread
{
More information about the jboss-cvs-commits
mailing list