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:
Britt Park
2006-11-17 00:57:31 +00:00
parent 4287b291d4
commit 992bd82b9e
3 changed files with 14 additions and 19 deletions

View File

@@ -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>
{