Author: areshetnyak
Date: 2009-11-12 08:43:12 -0500 (Thu, 12 Nov 2009)
New Revision: 597
Modified:
jcr/branches/1.12.0-JBC/component/core/src/test/java/org/exoplatform/services/jcr/impl/storage/jbosscache/JDBCCacheLoaderTest.java
Log:
EXOJCR-201 : The JDBCCacheLoaderTest was changed.
Modified:
jcr/branches/1.12.0-JBC/component/core/src/test/java/org/exoplatform/services/jcr/impl/storage/jbosscache/JDBCCacheLoaderTest.java
===================================================================
---
jcr/branches/1.12.0-JBC/component/core/src/test/java/org/exoplatform/services/jcr/impl/storage/jbosscache/JDBCCacheLoaderTest.java 2009-11-12
13:33:43 UTC (rev 596)
+++
jcr/branches/1.12.0-JBC/component/core/src/test/java/org/exoplatform/services/jcr/impl/storage/jbosscache/JDBCCacheLoaderTest.java 2009-11-12
13:43:12 UTC (rev 597)
@@ -423,6 +423,18 @@
public void testAddNode() throws Exception
{
// prepare
+ String nodeId = IdGenerator.generate();
+ List<ItemData> list = createNode(QPath.makeChildPath(Constants.ROOT_PATH,
InternalQName.parse("[]node:1")), nodeId, Constants.NT_UNSTRUCTURED, null);
+
+ List<Modification> modifications = new ArrayList<Modification>();
+
+ for (ItemData itemData : list)
+ if (itemData instanceof NodeData)
+ modifications.addAll(addNode((NodeData) itemData));
+ else
+ modifications.addAll(addProperty((PropertyData) itemData));
+
+ loader.put(modifications);
// tests
WorkspaceStorageConnection conn = persistentContainer.openConnection();
Show replies by date