Author: skabashnyuk
Date: 2010-02-08 08:58:21 -0500 (Mon, 08 Feb 2010)
New Revision: 1716
Modified:
jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/cluster/load/query/JcrQueryAvgResponceTimeTest.java
Log:
EXOJCR-395 : change test root creation
Modified:
jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/cluster/load/query/JcrQueryAvgResponceTimeTest.java
===================================================================
---
jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/cluster/load/query/JcrQueryAvgResponceTimeTest.java 2010-02-08
13:52:03 UTC (rev 1715)
+++
jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/cluster/load/query/JcrQueryAvgResponceTimeTest.java 2010-02-08
13:58:21 UTC (rev 1716)
@@ -269,7 +269,7 @@
CredentialsImpl credentials = new CredentialsImpl("admin",
"admin".toCharArray());
sessionLocal = repository.login(credentials, "ws");
long start = System.currentTimeMillis();
- Node threadNode = sessionLocal.getRootNode().getNode("Thread" +
threadUUID);
+ Node threadNode = getOrCreateNode(sessionLocal.getRootNode(), threadUUID);
addCountent(threadNode, UUID.randomUUID(), word);
sessionLocal.save();
result.add(new WorkerResult(false, System.currentTimeMillis() - start));
Show replies by date