@Test @FixFor( "MODE-2440" ) public void shouldRestoreLegacy450BackupWithCompressedBinaries() throws Exception { // extract the old repo backup File legacyBackupDir = extractZip("legacy_backup/repoBackups450.zip", this.backupArea); assertTrue("Zip content not extracted correctly", legacyBackupDir.exists() && legacyBackupDir.canRead() && legacyBackupDir.isDirectory()); Problems problems = session().getWorkspace().getRepositoryManager().restoreRepository(legacyBackupDir); assertNoProblems(problems); verifyBinaryContent(); }
/** * Test that a repository containing the same binary data (files) as the ones from this test backed up using ModeShape 3.8.1 * is restored correctly. */ @Test @FixFor( "MODE-2440" ) public void shouldRestoreLegacy381RepositoryWithSameName() throws Exception { // extract the old repo backup File legacyBackupDir = extractZip("legacy_backup/repoBackups381.zip", this.backupArea); assertTrue("Zip content not extracted correctly", legacyBackupDir.exists() && legacyBackupDir.canRead() && legacyBackupDir.isDirectory()); Problems problems = session().getWorkspace().getRepositoryManager().restoreRepository(legacyBackupDir); assertNoProblems(problems); verifyBinaryContent(); }
public void shouldRestoreLegacy381RepositoryWithDifferentName() throws Exception { File legacyBackupDir = extractZip("legacy_backup/repoBackups381_2.zip", this.backupArea); assertTrue("Zip content not extracted correctly", legacyBackupDir.exists() && legacyBackupDir.canRead() && legacyBackupDir.isDirectory());