Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- Fix File.getCanonicalPath()/File.getAbsolutePath() mismatch
- Disable FedoraBackupFSIT due to MacOS-X error
  • Loading branch information
escowles authored and Andrew Woods committed Oct 3, 2013
1 parent 5eb8068 commit 6291815
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Expand Up @@ -18,11 +18,14 @@

import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Ignore;

/**
* @author Andrew Woods
* Date: Aug 31, 2013
*/
// TODO: Reinstate this test with the fix of: https://www.pivotaltracker.com/story/show/57997564
@Ignore
public class FedoraBackupFSIT extends FedoraBackupIT {

private static final String CONFIG_FILE = "fcrepo.modeshape.configuration";
Expand Down
Expand Up @@ -55,15 +55,15 @@ public void shouldRoundTripBackups() throws Exception {

// back it up
File dir = Files.createTempDir();
logger.debug("Backing up repository to {}", dir.getAbsolutePath());
logger.debug("Backing up repository to {}", dir.getCanonicalPath());
final HttpPost backupMethod =
new HttpPost(serverAddress + "fcr:backup");
backupMethod.setEntity(new StringEntity(dir.getAbsolutePath()));
backupMethod.setEntity(new StringEntity(dir.getCanonicalPath()));
response = client.execute(backupMethod);
assertEquals(200, response.getStatusLine().getStatusCode());

final String content = EntityUtils.toString(response.getEntity());
assertEquals(dir.getAbsolutePath(), content);
assertEquals(dir.getCanonicalPath(), content);
logger.debug("Back up directory was {}", content);

// delete it
Expand Down

0 comments on commit 6291815

Please sign in to comment.