Author: manik.surtani(a)jboss.com
Date: 2008-07-16 04:34:15 -0400 (Wed, 16 Jul 2008)
New Revision: 6288
Modified:
core/trunk/src/test/java/org/jboss/cache/api/mvcc/repeatable_read/WriteSkewTest.java
core/trunk/src/test/java/org/jboss/cache/config/parsing/XmlConfigurationParserTest.java
Log:
allowWriteSkew -> writeSkewCheck : updated tests
Modified:
core/trunk/src/test/java/org/jboss/cache/api/mvcc/repeatable_read/WriteSkewTest.java
===================================================================
---
core/trunk/src/test/java/org/jboss/cache/api/mvcc/repeatable_read/WriteSkewTest.java 2008-07-16
08:31:16 UTC (rev 6287)
+++
core/trunk/src/test/java/org/jboss/cache/api/mvcc/repeatable_read/WriteSkewTest.java 2008-07-16
08:34:15 UTC (rev 6288)
@@ -65,17 +65,17 @@
LockAssert.assertNoLocks(lockManager, icc);
}
- public void testAllowWriteSkew() throws Exception
+ public void testDontCheckWriteSkew() throws Exception
{
- cache.getConfiguration().setAllowWriteSkew(true);
+ cache.getConfiguration().setWriteSkewCheck(false);
cache.start();
postStart();
doTest(true);
}
- public void testDontAllowWriteSkew() throws Exception
+ public void testCheckWriteSkew() throws Exception
{
- cache.getConfiguration().setAllowWriteSkew(false);
+ cache.getConfiguration().setWriteSkewCheck(true);
cache.start();
postStart();
doTest(false);
Modified:
core/trunk/src/test/java/org/jboss/cache/config/parsing/XmlConfigurationParserTest.java
===================================================================
---
core/trunk/src/test/java/org/jboss/cache/config/parsing/XmlConfigurationParserTest.java 2008-07-16
08:31:16 UTC (rev 6287)
+++
core/trunk/src/test/java/org/jboss/cache/config/parsing/XmlConfigurationParserTest.java 2008-07-16
08:34:15 UTC (rev 6288)
@@ -1,6 +1,12 @@
package org.jboss.cache.config.parsing;
-import org.jboss.cache.config.*;
+import org.jboss.cache.config.BuddyReplicationConfig;
+import org.jboss.cache.config.CacheLoaderConfig;
+import org.jboss.cache.config.Configuration;
+import org.jboss.cache.config.CustomInterceptorConfig;
+import org.jboss.cache.config.EvictionConfig;
+import org.jboss.cache.config.EvictionRegionConfig;
+import org.jboss.cache.config.OldFileFormatException;
import org.jboss.cache.config.parsing.custominterceptors.AaaCustomInterceptor;
import org.jboss.cache.config.parsing.custominterceptors.BbbCustomInterceptor;
import org.jboss.cache.eviction.LRUConfiguration;
@@ -37,7 +43,8 @@
{
parser.parseFile("configs/conf2x/pess-local.xml");
assert false : "exception expected";
- } catch (OldFileFormatException e)
+ }
+ catch (OldFileFormatException e)
{
//expectd
}
@@ -254,7 +261,7 @@
public void testMvccAttributes()
{
- assert config.isAllowWriteSkew();
+ assert !config.isWriteSkewCheck();
assert config.getConcurrencyLevel() == 21;
}
}
Show replies by date