[exo-jcr-commits] exo-jcr SVN: r1324 - jcr/branches/1.12.0-JBCCACHE/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/dataflow/persistent.
do-not-reply at jboss.org
do-not-reply at jboss.org
Fri Jan 8 07:59:00 EST 2010
Author: nzamosenchuk
Date: 2010-01-08 07:58:59 -0500 (Fri, 08 Jan 2010)
New Revision: 1324
Modified:
jcr/branches/1.12.0-JBCCACHE/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/dataflow/persistent/WorkspaceStorageCacheBaseCase.java
Log:
EXOJCR-371: added few missing cache.commitTransaction()
Modified: jcr/branches/1.12.0-JBCCACHE/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/dataflow/persistent/WorkspaceStorageCacheBaseCase.java
===================================================================
--- jcr/branches/1.12.0-JBCCACHE/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/dataflow/persistent/WorkspaceStorageCacheBaseCase.java 2010-01-08 12:38:14 UTC (rev 1323)
+++ jcr/branches/1.12.0-JBCCACHE/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/dataflow/persistent/WorkspaceStorageCacheBaseCase.java 2010-01-08 12:58:59 UTC (rev 1324)
@@ -343,6 +343,7 @@
properties1.add(propertyData11);
properties1.add(propertyData12);
cache.addChildProperties(nodeData1, properties1);
+ cache.commitTransaction();
}
catch (Exception e)
{
@@ -435,6 +436,7 @@
properties1.add(propertyData11);
properties1.add(propertyData12);
cache.addChildProperties(nodeData1, properties1);
+ cache.commitTransaction();
}
catch (Exception e)
{
@@ -473,7 +475,9 @@
assertEquals("Cached child properties count is wrong", cache.getChildProperties(nodeData2).size(), 2);
// remove
+ cache.beginTransaction();
cache.remove(propertyData12);
+ cache.commitTransaction();
// check
assertEquals("Cached child property " + propertyData11.getQPath().getAsString() + " is not equals", cache.get(
@@ -546,6 +550,7 @@
// remove
cache.remove(nodeData3); // remove node3 and its childs (31, 32)
+ cache.commitTransaction();
}
catch (Exception e)
{
@@ -583,6 +588,7 @@
// remove
cache.remove(nodeData2); // remove node2 and its childs (21, 22)
+ cache.commitTransaction();
}
catch (Exception e)
{
@@ -634,6 +640,7 @@
chlog.add(ItemState.createDeletedState(nodeData2));
// cache.remove(nodeData2); // remove node2 and its childs and properties (21, 22)
cache.onSaveItems(chlog);
+ cache.commitTransaction();
}
catch (Exception e)
{
More information about the exo-jcr-commits
mailing list