mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Cleaned up a seriously unnecessary ugliness.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4378 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -252,11 +252,11 @@ public class AVMServiceTest extends AVMServiceTestBase
|
||||
final ActionImpl action = new ActionImpl(null,
|
||||
GUID.generate(),
|
||||
AVMRevertListAction.NAME);
|
||||
VersionPathStuffer stuffer = new VersionPathStuffer();
|
||||
stuffer.add(-1, "area:/a/b");
|
||||
String nodeList = stuffer.toString();
|
||||
List<Pair<Integer, String>> versionPaths =
|
||||
new ArrayList<Pair<Integer, String>>();
|
||||
versionPaths.add(new Pair<Integer, String>(-1, "area:/a/b"));
|
||||
action.setParameterValue(AVMRevertListAction.PARAM_VERSION, fService.getLatestSnapshotID("area"));
|
||||
action.setParameterValue(AVMRevertListAction.PARAM_NODE_LIST, nodeList);
|
||||
action.setParameterValue(AVMRevertListAction.PARAM_NODE_LIST, (Serializable)versionPaths);
|
||||
action.setParameterValue(AVMRevertListAction.PARAM_FLATTEN, true);
|
||||
action.setParameterValue(AVMRevertListAction.PARAM_STORE, "area");
|
||||
action.setParameterValue(AVMRevertListAction.PARAM_STAGING, "main");
|
||||
@@ -304,10 +304,10 @@ public class AVMServiceTest extends AVMServiceTestBase
|
||||
final ActionImpl action = new ActionImpl(null,
|
||||
GUID.generate(),
|
||||
AVMUndoSandboxListAction.NAME);
|
||||
VersionPathStuffer stuffer = new VersionPathStuffer();
|
||||
stuffer.add(-1, "area:/a/b/c/bar");
|
||||
String nodeList = stuffer.toString();
|
||||
action.setParameterValue(AVMUndoSandboxListAction.PARAM_NODE_LIST, nodeList);
|
||||
List<Pair<Integer, String>> versionPaths =
|
||||
new ArrayList<Pair<Integer, String>>();
|
||||
versionPaths.add(new Pair<Integer, String>(-1, "area:/a/b/c/bar"));
|
||||
action.setParameterValue(AVMUndoSandboxListAction.PARAM_NODE_LIST, (Serializable)versionPaths);
|
||||
final AVMUndoSandboxListAction revert = (AVMUndoSandboxListAction)fContext.getBean("avm-undo-list");
|
||||
class TxnWork implements TransactionUtil.TransactionWork<Object>
|
||||
{
|
||||
|
Reference in New Issue
Block a user