[jboss-cvs] JBossCache/tests/functional/org/jboss/cache ...
Manik Surtani
msurtani at jboss.com
Wed Aug 16 07:15:56 EDT 2006
User: msurtani
Date: 06/08/16 07:15:56
Modified: tests/functional/org/jboss/cache
InterceptorConfigurationTest.java
TreeCacheFunctionalTest.java
Log:
Certain configs not being read properly, incorrect interceptor chain was generated.
Revision Changes Path
1.16 +2 -2 JBossCache/tests/functional/org/jboss/cache/InterceptorConfigurationTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: InterceptorConfigurationTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/InterceptorConfigurationTest.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- InterceptorConfigurationTest.java 20 Jul 2006 09:03:55 -0000 1.15
+++ InterceptorConfigurationTest.java 16 Aug 2006 11:15:56 -0000 1.16
@@ -365,7 +365,7 @@
cache.getConfiguration().setCacheMode("REPL_SYNC");
cache.getConfiguration().setBuddyReplicationConfig( XmlHelper.stringToElement(xmlString) );
cache.getConfiguration().setNodeLockingScheme("OPTIMISTIC");
-
+ cache._createService(); // initialise various subsystems such as BRManager
Interceptor chain = new InterceptorChainFactory().buildInterceptorChain(cache);
List list = InterceptorChainFactory.asList(chain);
@@ -396,7 +396,7 @@
xmlString += "</config>";
cache.getConfiguration().setCacheMode("REPL_SYNC");
cache.getConfiguration().setBuddyReplicationConfig( XmlHelper.stringToElement(xmlString) );
-
+ cache._createService(); // initialise various subsystems such as BRManager
Interceptor chain = new InterceptorChainFactory().buildInterceptorChain(cache);
List list = InterceptorChainFactory.asList(chain);
1.3 +1 -12 JBossCache/tests/functional/org/jboss/cache/TreeCacheFunctionalTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: TreeCacheFunctionalTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/TreeCacheFunctionalTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- TreeCacheFunctionalTest.java 20 Jul 2006 09:03:55 -0000 1.2
+++ TreeCacheFunctionalTest.java 16 Aug 2006 11:15:56 -0000 1.3
@@ -16,7 +16,7 @@
/**
* Simple functional tests for TreeCache
* @author Bela Ban
- * @version $Id: TreeCacheFunctionalTest.java,v 1.2 2006/07/20 09:03:55 msurtani Exp $
+ * @version $Id: TreeCacheFunctionalTest.java,v 1.3 2006/08/16 11:15:56 msurtani Exp $
*/
public class TreeCacheFunctionalTest extends TestCase {
TreeCache cache=null;
@@ -111,17 +111,6 @@
assertEquals(0, cache.getLockTable().size());
}
-
- public void testFailFastPut() throws Exception {
- cache.put(FQN, KEY, VALUE);
- cache.putFailFast(Fqn.fromString("/a/b/c"), KEY, VALUE, 0);
- cache.putFailFast(Fqn.fromString("/a/b/c"), KEY, VALUE, 100);
- cache.putFailFast(Fqn.fromString("/1/2/3"), KEY, VALUE, 100);
- cache.putFailFast(Fqn.fromString("/1/2/3"), KEY, VALUE, 0);
- System.out.println("cache: " + cache.printLockInfo());
- }
-
-
public void testFailFastWith2Transactions() throws Exception, NotSupportedException {
tx=startTransaction();
cache.put("/a/b/c", KEY, VALUE);
More information about the jboss-cvs-commits
mailing list