Author: manik.surtani(a)jboss.com
Date: 2008-12-03 11:28:05 -0500 (Wed, 03 Dec 2008)
New Revision: 7246
Modified:
core/branches/flat/src/test/java/org/jboss/starobrno/api/tree/NodeMoveAPITest.java
Log:
check if parent is locked
Modified:
core/branches/flat/src/test/java/org/jboss/starobrno/api/tree/NodeMoveAPITest.java
===================================================================
---
core/branches/flat/src/test/java/org/jboss/starobrno/api/tree/NodeMoveAPITest.java 2008-12-03
15:19:08 UTC (rev 7245)
+++
core/branches/flat/src/test/java/org/jboss/starobrno/api/tree/NodeMoveAPITest.java 2008-12-03
16:28:05 UTC (rev 7246)
@@ -596,7 +596,7 @@
Cache<Object, Object> cache = tree.getCache();
// /a/b, /c, /c/e, /a/b/c and /a/b/c/e should all be locked.
- assert TreeStructureSupport.isLocked(cache, A_B);
+ assert !cache.getConfiguration().isLockParentForChildInsertRemove() ||
TreeStructureSupport.isLocked(cache, A_B);
assert TreeStructureSupport.isLocked(cache, C);
assert TreeStructureSupport.isLocked(cache, C_E);
assert TreeStructureSupport.isLocked(cache, A_B_C);
Show replies by date