Author: bstansberry(a)jboss.com
Date: 2007-10-16 10:30:18 -0400 (Tue, 16 Oct 2007)
New Revision: 4625
Added:
core/trunk/src/test/java/org/jboss/cache/api/pfer/PFEROptimisticInvalidationAsyncTest.java
core/trunk/src/test/java/org/jboss/cache/api/pfer/PFEROptimisticInvalidationSyncTest.java
core/trunk/src/test/java/org/jboss/cache/api/pfer/PFERPessimisticInvalidationAsyncTest.java
core/trunk/src/test/java/org/jboss/cache/api/pfer/PFERPessimisticInvalidationSyncTest.java
Log:
[JBCACHE-1027] Add tests with invalidation
Added:
core/trunk/src/test/java/org/jboss/cache/api/pfer/PFEROptimisticInvalidationAsyncTest.java
===================================================================
---
core/trunk/src/test/java/org/jboss/cache/api/pfer/PFEROptimisticInvalidationAsyncTest.java
(rev 0)
+++
core/trunk/src/test/java/org/jboss/cache/api/pfer/PFEROptimisticInvalidationAsyncTest.java 2007-10-16
14:30:18 UTC (rev 4625)
@@ -0,0 +1,24 @@
+/*
+ * JBoss, Home of Professional Open Source
+ *
+ * Distributable under LGPL license.
+ * See terms of license at
gnu.org.
+ */
+package org.jboss.cache.api.pfer;
+
+import org.jboss.cache.config.Configuration;
+
+/**
+ * Test putForExternalRead with optimistic locking and INVALIDATION_ASYNC.
+ *
+ * @author Brian Stansberry
+ * @version $Revision$
+ */
+public class PFEROptimisticInvalidationAsyncTest extends PutForExternalReadTestBase
+{
+ public PFEROptimisticInvalidationAsyncTest()
+ {
+ optimistic = true;
+ cacheMode = Configuration.CacheMode.INVALIDATION_ASYNC;
+ }
+}
Added:
core/trunk/src/test/java/org/jboss/cache/api/pfer/PFEROptimisticInvalidationSyncTest.java
===================================================================
---
core/trunk/src/test/java/org/jboss/cache/api/pfer/PFEROptimisticInvalidationSyncTest.java
(rev 0)
+++
core/trunk/src/test/java/org/jboss/cache/api/pfer/PFEROptimisticInvalidationSyncTest.java 2007-10-16
14:30:18 UTC (rev 4625)
@@ -0,0 +1,24 @@
+/*
+ * JBoss, Home of Professional Open Source
+ *
+ * Distributable under LGPL license.
+ * See terms of license at
gnu.org.
+ */
+package org.jboss.cache.api.pfer;
+
+import org.jboss.cache.config.Configuration;
+
+/**
+ * Test putForExternalRead with optimistic locking and INVALIDATION_SYNC.
+ *
+ * @author Brian Stansberry
+ * @version $Revision$
+ */
+public class PFEROptimisticInvalidationSyncTest extends PutForExternalReadTestBase
+{
+ public PFEROptimisticInvalidationSyncTest()
+ {
+ optimistic = true;
+ cacheMode = Configuration.CacheMode.INVALIDATION_SYNC;
+ }
+}
Added:
core/trunk/src/test/java/org/jboss/cache/api/pfer/PFERPessimisticInvalidationAsyncTest.java
===================================================================
---
core/trunk/src/test/java/org/jboss/cache/api/pfer/PFERPessimisticInvalidationAsyncTest.java
(rev 0)
+++
core/trunk/src/test/java/org/jboss/cache/api/pfer/PFERPessimisticInvalidationAsyncTest.java 2007-10-16
14:30:18 UTC (rev 4625)
@@ -0,0 +1,24 @@
+/*
+ * JBoss, Home of Professional Open Source
+ *
+ * Distributable under LGPL license.
+ * See terms of license at
gnu.org.
+ */
+package org.jboss.cache.api.pfer;
+
+import org.jboss.cache.config.Configuration;
+
+/**
+ * Test putForExternalRead with pessimistic locking and INVALIDATION_SYNC.
+ *
+ * @author Brian Stansberry
+ * @version $Revision$
+ */
+public class PFERPessimisticInvalidationAsyncTest extends PutForExternalReadTestBase
+{
+ public PFERPessimisticInvalidationAsyncTest()
+ {
+ optimistic = false;
+ cacheMode = Configuration.CacheMode.INVALIDATION_SYNC;
+ }
+}
Added:
core/trunk/src/test/java/org/jboss/cache/api/pfer/PFERPessimisticInvalidationSyncTest.java
===================================================================
---
core/trunk/src/test/java/org/jboss/cache/api/pfer/PFERPessimisticInvalidationSyncTest.java
(rev 0)
+++
core/trunk/src/test/java/org/jboss/cache/api/pfer/PFERPessimisticInvalidationSyncTest.java 2007-10-16
14:30:18 UTC (rev 4625)
@@ -0,0 +1,25 @@
+/*
+ * JBoss, Home of Professional Open Source
+ *
+ * Distributable under LGPL license.
+ * See terms of license at
gnu.org.
+ */
+package org.jboss.cache.api.pfer;
+
+import org.jboss.cache.config.Configuration;
+
+/**
+ * Test putForExternalRead with pessimistic locking and INVALIDATION_ASYNC.
+ *
+ * @author Brian Stansberry
+ * @version $Revision$
+ */
+public class PFERPessimisticInvalidationSyncTest extends PutForExternalReadTestBase
+{
+ public PFERPessimisticInvalidationSyncTest()
+ {
+ optimistic = false;
+ cacheMode = Configuration.CacheMode.INVALIDATION_ASYNC;
+ }
+
+}