[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/lock ...
Manik Surtani
msurtani at jboss.com
Mon Feb 5 19:19:34 EST 2007
User: msurtani
Date: 07/02/05 19:19:34
Modified: tests/functional/org/jboss/cache/lock Tag:
Branch_JBossCache_1_4_0 WriteLockOnParentTest.java
Log:
JDK5 classes removed
Revision Changes Path
No revision
No revision
1.1.2.2 +12 -12 JBossCache/tests/functional/org/jboss/cache/lock/WriteLockOnParentTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: WriteLockOnParentTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/lock/WriteLockOnParentTest.java,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -b -r1.1.2.1 -r1.1.2.2
--- WriteLockOnParentTest.java 30 Jan 2007 20:22:41 -0000 1.1.2.1
+++ WriteLockOnParentTest.java 6 Feb 2007 00:19:34 -0000 1.1.2.2
@@ -46,17 +46,17 @@
public void testDefaultChildInsert() throws Exception
{
- cache.put("/a", Collections.emptyMap());
+ cache.put("/a", Collections.EMPTY_MAP);
assertTrue("/a should exist", cache.exists("/a"));
// concurrent insert of /a/b and /a/c
tm.begin();
- cache.put("/a/b", Collections.emptyMap());
+ cache.put("/a/b", Collections.EMPTY_MAP);
Transaction t1 = tm.suspend();
tm.begin();
- cache.put("/a/c", Collections.emptyMap());
+ cache.put("/a/c", Collections.EMPTY_MAP);
tm.commit();
tm.resume(t1);
@@ -71,19 +71,19 @@
cache.stop();
cache.setLockParentForChildInsertRemove(true);
cache.start();
- cache.put("/a", Collections.emptyMap());
+ cache.put("/a", Collections.EMPTY_MAP);
assertTrue("/a should exist", cache.exists("/a"));
// concurrent insert of /a/b and /a/c
tm.begin();
- cache.put("/a/b", Collections.emptyMap());
+ cache.put("/a/b", Collections.EMPTY_MAP);
Transaction t1 = tm.suspend();
tm.begin();
try
{
- cache.put("/a/c", Collections.emptyMap());
+ cache.put("/a/c", Collections.EMPTY_MAP);
fail("Should not get here.");
}
catch (TimeoutException e)
@@ -101,9 +101,9 @@
public void testDefaultChildRemove() throws Exception
{
- cache.put("/a", Collections.emptyMap());
- cache.put("/a/b", Collections.emptyMap());
- cache.put("/a/c", Collections.emptyMap());
+ cache.put("/a", Collections.EMPTY_MAP);
+ cache.put("/a/b", Collections.EMPTY_MAP);
+ cache.put("/a/c", Collections.EMPTY_MAP);
assertTrue("/a should exist", cache.exists("/a"));
assertTrue("/a/b should exist", cache.exists("/a/b"));
@@ -132,9 +132,9 @@
cache.setLockParentForChildInsertRemove(true);
cache.start();
- cache.put("/a", Collections.emptyMap());
- cache.put("/a/b", Collections.emptyMap());
- cache.put("/a/c", Collections.emptyMap());
+ cache.put("/a", Collections.EMPTY_MAP);
+ cache.put("/a/b", Collections.EMPTY_MAP);
+ cache.put("/a/c", Collections.EMPTY_MAP);
assertTrue("/a should exist", cache.exists("/a"));
assertTrue("/a/b should exist", cache.exists("/a/b"));
More information about the jboss-cvs-commits
mailing list