Add the repositoryId to the transfer format.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@20841 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Mark Rogers
2010-06-28 12:38:17 +00:00
parent 052668e809
commit e54ae4f5ae
8 changed files with 61 additions and 2 deletions

View File

@@ -64,6 +64,7 @@ public class TransferManifestTest extends TestCase
*/
String prefix = "TRX-SNAP";
String suffix = ".xml";
String repoId = "repoId";
// where to put snapshot ?
File snapshotFile = TempFileProvider.createTempFile(prefix, suffix);
@@ -73,6 +74,7 @@ public class TransferManifestTest extends TestCase
TransferManifestWriter formatter = new XMLTransferManifestWriter();
TransferManifestHeader header = new TransferManifestHeader();
header.setCreatedDate(new Date());
header.setRepositoryId(repoId);
formatter.startTransferManifest(snapshotWriter);
formatter.writeTransferManifestHeader(header);