mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Provided a getLatestSnapshotID() for AVMService. It returns the latest extant version of
a store. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4364 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -254,7 +254,7 @@ public class AVMServiceTest extends AVMServiceTestBase
|
||||
VersionPathStuffer stuffer = new VersionPathStuffer();
|
||||
stuffer.add(-1, "area:/a/b");
|
||||
String nodeList = stuffer.toString();
|
||||
action.setParameterValue(AVMRevertListAction.PARAM_VERSION, 1);
|
||||
action.setParameterValue(AVMRevertListAction.PARAM_VERSION, fService.getLatestSnapshotID("area"));
|
||||
action.setParameterValue(AVMRevertListAction.PARAM_NODE_LIST, nodeList);
|
||||
action.setParameterValue(AVMRevertListAction.PARAM_FLATTEN, true);
|
||||
action.setParameterValue(AVMRevertListAction.PARAM_STORE, "area");
|
||||
@@ -273,6 +273,8 @@ public class AVMServiceTest extends AVMServiceTestBase
|
||||
new TxnWork());
|
||||
diffs = fSyncService.compare(-1, "area:/a", -1, "main:/a");
|
||||
assertEquals(0, diffs.size());
|
||||
System.out.println(recursiveList("area", -1, true));
|
||||
System.out.println(recursiveList("main", -1, true));
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
Reference in New Issue
Block a user